move to different build setup
All checks were successful
git.dreamfall.space/jenkins-mercurial/pipeline/head This commit looks good
All checks were successful
git.dreamfall.space/jenkins-mercurial/pipeline/head This commit looks good
This commit is contained in:
parent
afc70f7ecb
commit
c7098685dd
1 changed files with 6 additions and 2 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -2,6 +2,7 @@ pipeline {
|
|||
agent none
|
||||
environment {
|
||||
CHAT = "spacenerdmo@clacks.network"
|
||||
MAIL = "morgan@mcmillian.dev"
|
||||
}
|
||||
stages {
|
||||
stage('Build docker image') {
|
||||
|
@ -12,8 +13,8 @@ pipeline {
|
|||
steps {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', notifySuspects: true, targets: "${CHAT}"
|
||||
script {
|
||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-forgejo-pkg') {
|
||||
def customImage = docker.build("git.dreamfall.space/thrrgilag/jenkins-mercurial:${TAG}")
|
||||
docker.withRegistry('https://git.dreamfall.space/spacenerdmo', 'spacenerdmo-pkg-pub') {
|
||||
def customImage = docker.build("git.dreamfall.space/spacenerdmo/jenkins-mercurial:${TAG}")
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
|
@ -24,6 +25,9 @@ pipeline {
|
|||
}
|
||||
failure {
|
||||
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