Trying to add variables to build
This commit is contained in:
parent
ba034c8871
commit
02c3dc8b33
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -24,15 +24,19 @@ spec:
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
node(POD_LABEL) {
|
node(POD_LABEL) {
|
||||||
|
environment {
|
||||||
|
MEDUSA_VER = '0.4.2'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
stage('Build with Kaniko') {
|
stage('Build with Kaniko') {
|
||||||
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-medusa.git', credentialsId: 'jenkins-to-git'
|
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-medusa.git', credentialsId: 'jenkins-to-git'
|
||||||
container('kaniko') {
|
container('kaniko') {
|
||||||
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:0.4 --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:0.4.0'
|
sh "/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:0.4 --destination=harbor.ervine.dev/public/x86_64/alpine/medusa:v${MEDUSA_VER}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Notify gchat') {
|
stage('Notify gchat') {
|
||||||
hangoutsNotify message: "Medusa 0.4.0 on openSUSE Leap 15.2 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
hangoutsNotify message: "Medusa ${MEDUSA_VER} on openSUSE Leap 15.2 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user