PlayerShops/Jenkinsfile

29 lines
817 B
Plaintext
Raw Normal View History

2024-08-04 20:24:29 +00:00
pipeline {
agent any
stages {
stage('Gradle') {
steps {
sh './gradlew build'
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
}
}
stage('discord') {
steps {
discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook
}
}
2024-08-13 13:41:53 +00:00
stage('Copy to /mnt/updates/plugins') {
when {
branch 'main'
branch 'master'
}
steps {
sh 'cp build/libs/*.jar /mnt/updates/plugins/'
}
}
2024-08-04 20:24:29 +00:00
}
}