Move Jenkinsfile from ps-v7 to general branch (#2098)

* Move Jenkinsfile from ps-v7 to general branch

* Update Jenkinsfile
Dieser Commit ist enthalten in:
Alexander Brandes 2023-02-25 10:31:33 +01:00 committet von GitHub
Ursprung 7a667131ba
Commit 184eb215b6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

37
Jenkinsfile vendored Normale Datei
Datei anzeigen

@ -0,0 +1,37 @@
pipeline {
agent any
options {
disableConcurrentBuilds()
}
stages {
stage('Set JDK 17') {
steps {
tool name: 'Temurin-17.0.6+10', type: 'jdk'
}
}
stage('Build') {
steps {
sh './gradlew clean build'
}
}
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'
}
}
}
}