cleanup build file for production use
This commit is contained in:
parent
592ed4e8c7
commit
d1dd0d7760
1 changed files with 12 additions and 10 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -1,5 +1,8 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
|
environment {
|
||||||
|
CHAT = "devel@conference.mcmillian.dev"
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
agent { label 'docker-build' }
|
agent { label 'docker-build' }
|
||||||
|
@ -7,8 +10,7 @@ pipeline {
|
||||||
TAG = "${env.BRANCH_NAME == "main" ? "latest" : env.BRANCH_NAME}"
|
TAG = "${env.BRANCH_NAME == "main" ? "latest" : env.BRANCH_NAME}"
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
// mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', notifySuspects: true, targets: "${CHAT}"
|
||||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', targets: '...'
|
|
||||||
script {
|
script {
|
||||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-forgejo-pkg') {
|
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-forgejo-pkg') {
|
||||||
def customImage = docker.build("git.dreamfall.space/thrrgilag/prosody:${TAG}")
|
def customImage = docker.build("git.dreamfall.space/thrrgilag/prosody:${TAG}")
|
||||||
|
@ -16,14 +18,14 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// post {
|
post {
|
||||||
// success {
|
success {
|
||||||
// mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Succeeded', notifySuspects: true, targets: "${CHAT}"
|
||||||
// }
|
}
|
||||||
// failure {
|
failure {
|
||||||
// mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', notifySuspects: true, targets: "${CHAT}"
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue