File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,31 @@ pipeline {
6565 YARN_CACHE_FOLDER = " ${ env.WORKSPACE} /yarn-cache"
6666 SPAWN_WRAP_SHIM_ROOT = " ${ env.WORKSPACE} "
676768+ 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' ) {
You can’t perform that action at this time.
0 commit comments