mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Simplify Java location in Jenkinsfile (#2221)
This commit is contained in:
parent
71bac009db
commit
319cb636e5
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user