2024-08-09 14:56:49 +00:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
environment {
|
|
|
|
CHAT = "spacenerdmo@clacks.network"
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build docker image') {
|
2024-08-09 16:25:54 +00:00
|
|
|
agent { label 'docker-build' }
|
2024-08-09 14:56:49 +00:00
|
|
|
environment {
|
|
|
|
TAG = "lts"
|
|
|
|
}
|
|
|
|
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}")
|
|
|
|
customImage.push()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Succeeded', notifySuspects: true, targets: "${CHAT}"
|
|
|
|
}
|
|
|
|
failure {
|
|
|
|
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', notifySuspects: true, targets: "${CHAT}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|