Skip to content

Commit ce35ee3

Browse files
committed
add node binaries to PATH
1 parent 1a84243 commit ce35ee3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Jenkinsfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
sproutMultiModuleBuild {
2-
moduleToBuild = 'mcp-parent'
3-
nodeLabel = 'ephemeral'
4-
tribes = ['global']
5-
notifySlackGroupsOnFailure = ['@kevin']
6-
jdk = 17
7-
deployRCBranches = true
8-
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 && export PATH="$PWD/node-v18.19.0-linux-x64/bin:$PATH"'
1+
withEnv(["PATH=${WORKSPACE}/node-v18.19.0-linux-x64/bin:${PATH}"]) {
2+
sproutMultiModuleBuild {
3+
moduleToBuild = 'mcp-parent'
4+
nodeLabel = 'ephemeral'
5+
tribes = ['global']
6+
notifySlackGroupsOnFailure = ['@kevin']
7+
jdk = 17
8+
deployRCBranches = true
9+
// integration tests require npx command
10+
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'
11+
}
912
}

0 commit comments

Comments
 (0)