kiln-builder/Jenkinsfile
Morgan McMillian c451d1148d
Some checks reported errors
dreamfall/kiln-builder/pipeline/head This commit looks good
thrrgilag/kiln-builder/pipeline/head Something is wrong with the build of this commit
initial commit
2023-02-09 16:15:46 -08:00

25 lines
1,018 B
Groovy

pipeline {
agent none
stages {
stage('Build docker image') {
agent { label 'docker-build' }
steps {
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
script {
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
def customImage = docker.build('git.dreamfall.space/thrrgilag/kiln:latest')
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>)"
}
}
}
}
}