Trying to add variables to build

This commit is contained in:
jenkins-x-bot 2020-09-08 10:54:16 +08:00
parent ba034c8871
commit 02c3dc8b33

20
Jenkinsfile vendored
View File

@ -24,15 +24,19 @@ spec:
) {
node(POD_LABEL) {
stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-medusa.git', credentialsId: 'jenkins-to-git'
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'
environment {
MEDUSA_VER = '0.4.2'
}
stages {
stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-medusa.git', credentialsId: 'jenkins-to-git'
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:v${MEDUSA_VER}"
}
}
stage('Notify gchat') {
hangoutsNotify message: "Medusa ${MEDUSA_VER} on openSUSE Leap 15.2 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
}
}
}
}
stage('Notify gchat') {
hangoutsNotify message: "Medusa 0.4.0 on openSUSE Leap 15.2 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
}