adjustment to docker registry settings and add status messages
All checks were successful
dreamfall/partybot/pipeline/head This commit looks good
All checks were successful
dreamfall/partybot/pipeline/head This commit looks good
This commit is contained in:
parent
fa9b74d105
commit
ec2dfcec42
1 changed files with 11 additions and 3 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -2,7 +2,7 @@ pipeline {
|
|||
agent none
|
||||
environment {
|
||||
SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials')
|
||||
registryCredential = 'jenkins-gitea-id'
|
||||
registryCredential = credentials('docker-gitea-creds')
|
||||
}
|
||||
options {
|
||||
skipDefaultCheckout(true)
|
||||
|
@ -11,16 +11,24 @@ pipeline {
|
|||
stage('Build docker image') {
|
||||
agent { label 'docker-build' }
|
||||
steps {
|
||||
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
cleanWs()
|
||||
checkout scm
|
||||
script {
|
||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', registryCredential) {
|
||||
def customImage = docker.build('partybot:latest')
|
||||
|
||||
def customImage = docker.build('git.dreamfall.space/thrrgilag/partybot: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>)"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Build snap packages') {
|
||||
when { expression { false == true } }
|
||||
|
|
Loading…
Reference in a new issue