jdk 'OpenJDK 21'
}
steps {
- sh './mvnw clean compile test-compile'
+ configFileProvider([configFile(fileId: 'fb50fa11-48a8-44b8-84fd-e11f06ab1067', targetLocation: 'toolchains.xml')]) {
+ sh './mvnw -t toolchains.xml clean compile test-compile'
+ }
}
}
stage('Test') {
jdk 'OpenJDK 21'
}
steps {
- sh './mvnw verify'
+ configFileProvider([configFile(fileId: 'fb50fa11-48a8-44b8-84fd-e11f06ab1067', targetLocation: 'toolchains.xml')]) {
+ sh './mvnw -t toolchains.xml verify'
+ }
}
post {
always {
jdk 'OpenJDK 21'
}
steps {
- sh './mvnw -DskipTests=true package'
- archiveArtifacts artifacts: 'target/*.jar', fingerprint: true
- javadoc javadocDir: 'target/apidocs', keepAll: true
+ configFileProvider([configFile(fileId: 'fb50fa11-48a8-44b8-84fd-e11f06ab1067', targetLocation: 'toolchains.xml')]) {
+ sh './mvnw -t toolchains.xml -DskipTests=true package'
+ archiveArtifacts artifacts: 'target/*.jar', fingerprint: true
+ javadoc javadocDir: 'target/apidocs', keepAll: true
+ }
}
}
}