Skip to content

Commit b0f0188

Browse files
committed
this is getting serious
1 parent f376367 commit b0f0188

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

Jenkinsfile

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
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+
}
1122
}

0 commit comments

Comments
 (0)