test notificaiton and tag strategy
Some checks reported errors
thrrgilag/prosody-docker/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
thrrgilag/prosody-docker/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
2bba2cba00
commit
78a3d57bd6
1 changed files with 5 additions and 1 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -3,11 +3,15 @@ pipeline {
|
|||
stages {
|
||||
stage('Build docker image') {
|
||||
agent { label 'test-build' }
|
||||
environment {
|
||||
TAG = "${env.BRANCH_NAME == "main" ? "latest" : env.BRANCH_NAME}"
|
||||
}
|
||||
steps {
|
||||
// mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', targets: '...'
|
||||
script {
|
||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-forgejo-pkg') {
|
||||
def customImage = docker.build("git.dreamfall.space/thrrgilag/prosody:${env.BUILD_TAG}")
|
||||
def customImage = docker.build("git.dreamfall.space/thrrgilag/prosody:${TAG}")
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue