Adding variables
This commit is contained in:
parent
b8737ffd9d
commit
04ce8e9bfd
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -11,9 +11,6 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: jenkins-docker-cfg
|
- name: jenkins-docker-cfg
|
||||||
mountPath: /kaniko/.docker
|
mountPath: /kaniko/.docker
|
||||||
env:
|
|
||||||
- name: "MEDUSA_VER"
|
|
||||||
value: "0.4.2"
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: jenkins-docker-cfg
|
- name: jenkins-docker-cfg
|
||||||
projected:
|
projected:
|
||||||
@ -27,16 +24,19 @@ spec:
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
node(POD_LABEL) {
|
node(POD_LABEL) {
|
||||||
environment {
|
|
||||||
MEDUSA_VER = '0.4.2'
|
|
||||||
}
|
|
||||||
stage('Build with Kaniko') {
|
stage('Build with Kaniko') {
|
||||||
|
environment {
|
||||||
|
MEDUSA_VER = "0.4.2"
|
||||||
|
}
|
||||||
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:v${MEDUSA_VER}"
|
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') {
|
||||||
|
environment {
|
||||||
|
MEDUSA_VER = "0.4.2"
|
||||||
|
}
|
||||||
hangoutsNotify message: "Medusa ${MEDUSA_VER} 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