2022-12-28 15:38:52 +00:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
stage('Build docker image') {
|
|
|
|
agent { label 'docker-build' }
|
|
|
|
steps {
|
2023-03-02 14:01:25 +00:00
|
|
|
// mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
2022-12-28 15:38:52 +00:00
|
|
|
script {
|
|
|
|
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
|
2022-12-28 20:50:01 +00:00
|
|
|
def customImage = docker.build("git.dreamfall.space/thrrgilag/clacksme:latest")
|
2022-12-28 15:38:52 +00:00
|
|
|
customImage.push()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-02 14:01:25 +00:00
|
|
|
// 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>)"
|
|
|
|
// }
|
|
|
|
// }
|
2022-12-28 15:38:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|