2023-02-25 10:31:33 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
options {
|
|
|
|
disableConcurrentBuilds()
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2023-05-12 23:46:38 +02:00
|
|
|
withEnv([
|
2024-05-19 13:32:18 +02:00
|
|
|
"PATH+JAVA=${tool 'Temurin-21.0.3_9'}/bin"
|
2023-05-12 23:46:38 +02:00
|
|
|
]) {
|
|
|
|
sh './gradlew clean build'
|
|
|
|
}
|
2023-02-25 10:31:33 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf artifacts'
|
|
|
|
sh 'mkdir artifacts'
|
|
|
|
sh 'cp worldedit-bukkit/build/libs/FastAsyncWorldEdit*.jar artifacts/'
|
|
|
|
sh 'cp worldedit-cli/build/libs/FastAsyncWorldEdit*.jar artifacts/'
|
|
|
|
archiveArtifacts artifacts: 'artifacts/*.jar', followSymlinks: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Fingerprint artifacts') {
|
|
|
|
steps {
|
|
|
|
fingerprint 'worldedit-bukkit/build/libs/FastAsyncWorldEdit*.jar'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Publish JUnit test results') {
|
|
|
|
steps {
|
|
|
|
junit 'worldedit-core/build/test-results/test/*.xml,worldedit-bukkit/build/test-results/test/*.xml'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|