prosody-docker/Jenkinsfile
Morgan McMillian 8566673a6f
Some checks failed
thrrgilag/prosody-docker/pipeline/head There was a failure building this commit
test again
2023-11-09 17:40:35 -08:00

25 lines
1 KiB
Groovy

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 {
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'forgejo-jenkins-p') {
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>)"
// }
// }
}
}
}