2023-11-09 23:55:30 +00:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
stage('Build docker image') {
|
|
|
|
agent { label 'test-build' }
|
|
|
|
steps {
|
|
|
|
// mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
|
|
script {
|
2023-11-10 00:24:29 +00:00
|
|
|
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-jenkins') {
|
2023-11-09 23:55:30 +00:00
|
|
|
def customImage = docker.build("git.dreamfall.space/thrrgilag/prosody:${env.BUILD_TAG}")
|
|
|
|
customImage.push()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// post {
|
|
|
|
// success {
|
|
|
|
// mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
|
|
// }
|
|
|
|
// failure {
|
|
|
|
// mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|