move build host
Some checks failed
git.dreamfall.space/partybot/pipeline/head There was a failure building this commit
Some checks failed
git.dreamfall.space/partybot/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2a05edf78d
commit
30286c7f07
1 changed files with 7 additions and 3 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -1,7 +1,8 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
environment {
|
environment {
|
||||||
CHAT = "devel@conference.mcmillian.dev"
|
CHAT = "devel@conference.mcmillian.dev,spacenerdmo@clacks.network"
|
||||||
|
MAIL = "morgan@mcmillian.dev"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
|
@ -12,8 +13,8 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', notifySuspects: true, targets: "${CHAT}"
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', notifySuspects: true, targets: "${CHAT}"
|
||||||
script {
|
script {
|
||||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-forgejo-pkg') {
|
docker.withRegistry('https://git.dreamfall.space/spacenerdmo', 'spacenerdmo-pkg-pub') {
|
||||||
def customImage = docker.build("git.dreamfall.space/thrrgilag/partybot:${TAG}")
|
def customImage = docker.build("git.dreamfall.space/spacenerdmo/partybot:${TAG}")
|
||||||
customImage.push()
|
customImage.push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,6 +25,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', notifySuspects: true, targets: "${CHAT}"
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', notifySuspects: true, targets: "${CHAT}"
|
||||||
|
mail to: "${MAIL}",
|
||||||
|
subject: "Deploy Failed: ${currentBuild.fullDisplayName}",
|
||||||
|
body: "Something is wrong with ${env.BUILD_URL}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue