File tree Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
- sproutMultiModuleBuild {
2
- moduleToBuild = ' mcp-parent'
3
- nodeLabel = ' ephemeral'
4
- tribes = [' global' ]
5
- notifySlackGroupsOnFailure = [' @kevin' ]
6
- jdk = 17
7
- deployRCBranches = true
8
- // integration tests require npx command
9
- preBuildBashCommands = ' wget -q https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.xz && tar -xf node-v18.19.0-linux-x64.tar.xz'
10
- mavenProperties = ' -Dmaven.surefire.environmentVariables=PATH=$PWD/node-v18.19.0-linux-x64/bin:$PATH'
1
+ script {
2
+ def nodeHome = " ${ env.WORKSPACE} /.node"
3
+ withEnv([" PATH=${ nodeHome} /bin:${ env.PATH} " ]) {
4
+ sproutMultiModuleBuild {
5
+ moduleToBuild = ' mcp-parent'
6
+ nodeLabel = ' ephemeral'
7
+ tribes = [' global' ]
8
+ notifySlackGroupsOnFailure = [' @kevin' ]
9
+ jdk = 17
10
+ deployRCBranches = true
11
+
12
+ preBuildBashCommands = """
13
+ set -e
14
+ mkdir -p "${ nodeHome} "
15
+ wget -q https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.xz
16
+ tar -xJf node-v18.19.0-linux-x64.tar.xz --strip-components=1 -C "${ nodeHome} "
17
+ "${ nodeHome} /bin/node" -v || true
18
+ "${ nodeHome} /bin/npx" -v || true
19
+ """
20
+ }
21
+ }
11
22
}
You can’t perform that action at this time.
0 commit comments