mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|