mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-22 10:35:42 +01:00
Jenkinsfile: add discord webhook
also specify jdk version where needed
This commit is contained in:
parent
61f261ee2a
commit
8d5cd6980d
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -1,8 +1,16 @@
|
||||
pipeline {
|
||||
agent { label 'slave' }
|
||||
options { timestamps() }
|
||||
|
||||
environment {
|
||||
discord_webhook1 = credentials('yatopia_discord_webhook')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Cleanup') {
|
||||
tools {
|
||||
jdk "OpenJDK 8"
|
||||
}
|
||||
steps {
|
||||
scmSkip(deleteBuild: true, skipPattern:'.*\\[CI-SKIP\\].*')
|
||||
sh 'git config --global gc.auto 0'
|
||||
@ -14,6 +22,9 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Init project & submodules') {
|
||||
tools {
|
||||
jdk "OpenJDK 8"
|
||||
}
|
||||
steps {
|
||||
withMaven(
|
||||
maven: '3',
|
||||
@ -83,5 +94,13 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Discord Webhook') {
|
||||
steps {
|
||||
script {
|
||||
discordSend description: "Yatopia Jenkins Build", footer: "Yatopia", link: env.BUILD_URL, result: currentBuild.currentResult, title: JOB_NAME, webhookURL: discord_webhook1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user