Simplify Java location in Jenkinsfile (#2221)

This commit is contained in:
Alexander Brandes 2023-05-12 14:46:38 -07:00 committed by GitHub
parent 71bac009db
commit 319cb636e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

11
Jenkinsfile vendored
View File

@ -4,14 +4,13 @@ pipeline {
disableConcurrentBuilds()
}
stages {
stage('Set JDK 17') {
steps {
tool name: 'Temurin-17.0.6+10', type: 'jdk'
}
}
stage('Build') {
steps {
sh './gradlew clean build'
withEnv([
"PATH+JAVA=${tool 'Temurin-17.0.6+10'}/bin"
]) {
sh './gradlew clean build'
}
}
}
stage('Archive artifacts') {