Skip to content

Commit

Permalink
Update jenkinsfile for Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed May 23, 2024
1 parent bd875f7 commit 5e8313f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pipeline {

stage('Build') {
steps {
sh "./gradlew build -PBUILD_NUMBER=${env.BUILD_NUMBER} --no-daemon"
sh "JAVA_HOME=${env.JDK_17} ./gradlew build -PBUILD_NUMBER=${env.BUILD_NUMBER} --no-daemon"
}
}

Expand All @@ -24,7 +24,7 @@ pipeline {

stage('Deploy') {
steps {
sh "./gradlew publishMavenJavaPublicationToMavenRepository -PBUILD_NUMBER=${env.BUILD_NUMBER} -PDEPLOY_DIR=${env.MAVEN_DEPLOY_DIR} --no-daemon"
sh "JAVA_HOME=${env.JDK_17} ./gradlew publishMavenJavaPublicationToMavenRepository -PBUILD_NUMBER=${env.BUILD_NUMBER} -PDEPLOY_DIR=${env.MAVEN_DEPLOY_DIR} --no-daemon"
}
}
}
Expand Down

0 comments on commit 5e8313f

Please sign in to comment.