test build
Some checks failed
thrrgilag/prosody-docker/pipeline/head There was a failure building this commit
Some checks failed
thrrgilag/prosody-docker/pipeline/head There was a failure building this commit
This commit is contained in:
parent
45c7a894df
commit
5fa67476aa
1 changed files with 25 additions and 0 deletions
25
Jenkinsfile
vendored
Normal file
25
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
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') {
|
||||
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>)"
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue