Skip to content

Commit ea6e0da

Browse files
committed
Add temporary step to install maven 3.9.0
1 parent 13d3d85 commit ea6e0da

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Jenkinsfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,31 @@ pipeline {
6565
YARN_CACHE_FOLDER = "${env.WORKSPACE}/yarn-cache"
6666
SPAWN_WRAP_SHIM_ROOT = "${env.WORKSPACE}"
6767
EMAIL_TO= "[email protected]"
68+
MAVEN_VERSION = "3.9.7"
69+
6870
}
6971

7072
stages {
73+
stage('Setup Maven') {
74+
steps {
75+
container('ci') {
76+
sh '''
77+
# Download Maven 3.9.0
78+
curl -o maven.tar.gz -L https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
79+
# Extract Maven
80+
tar -xzf maven.tar.gz -C ${WORKSPACE}
81+
# Clean up tar file
82+
rm -f maven.tar.gz
83+
'''
84+
// Set MAVEN_HOME manually
85+
script {
86+
env.MAVEN_HOME = "${env.WORKSPACE}/apache-maven-${env.MAVEN_VERSION}"
87+
env.PATH = "${env.MAVEN_HOME}/bin:${env.PATH}"
88+
}
89+
sh "echo 'MAVEN_HOME set to ${env.MAVEN_HOME}'"
90+
}
91+
}
92+
}
7193
stage('Build client') {
7294
steps {
7395
container('ci') {

0 commit comments

Comments
 (0)