move build
All checks were successful
git.dreamfall.space/prosody-docker/pipeline/head This commit looks good
All checks were successful
git.dreamfall.space/prosody-docker/pipeline/head This commit looks good
This commit is contained in:
parent
9292416cc2
commit
8d71044107
1 changed files with 5 additions and 1 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -2,6 +2,7 @@ pipeline {
|
||||||
agent none
|
agent none
|
||||||
environment {
|
environment {
|
||||||
CHAT = "spacenerdmo@clacks.network"
|
CHAT = "spacenerdmo@clacks.network"
|
||||||
|
MAIL = "morgan@mcmillian.dev"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
|
@ -12,7 +13,7 @@ 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/spacenerdmo', 'thrrgilag-forgejo-pkg') {
|
docker.withRegistry('https://git.dreamfall.space/spacenerdmo', 'spacenerdmo-pkg-pub') {
|
||||||
def customImage = docker.build("git.dreamfall.space/spacenerdmo/prosody:${TAG}")
|
def customImage = docker.build("git.dreamfall.space/spacenerdmo/prosody:${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