Update Jenkinsfile

This commit is contained in:
Maxopoly authored and GitHub committed 2020-06-11 23:40:11 +02:00
1 parent 344004d773
commit 0bd136de59
1 file changed
+29 -4
Vendored
+29 -4
View File
@@ -1,21 +1,46 @@
@Library('civ_pipeline_lib')_
pipeline {
agent any
tools {
maven 'Maven 3.6.3'
jdk 'Java 8'
}
environment {
civ_dependent_plugins = ""
}
stages {
stage ('Build') {
steps {
sh 'mvn -U clean install deploy -P civ-jenkins'
civ_build_plugin()
}
}
stage ('Archive binaries') {
steps {
civ_archive_artifacts()
}
}
stage ('Archive javadoc') {
steps {
civ_archive_javadoc()
}
}
stage ('Aggregate reports') {
steps {
civ_aggregate_reports()
}
}
}
post {
always {
withCredentials([string(credentialsId: 'civclassic-discord-webhook', variable: 'DISCORD_WEBHOOK')]) {
discordSend description: "**Build:** [${currentBuild.id}](${env.BUILD_URL})\n**Status:** [${currentBuild.currentResult}](${env.BUILD_URL})\n", footer: 'Civclassic Jenkins', link: env.BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: "${env.JOB_NAME} #${currentBuild.id}", webhookURL: DISCORD_WEBHOOK
}
civ_post_always()
}
success {
civ_post_success()
}
failure {
civ_post_failure()
}
}
}