fixup-vars2
parent
4c85726c99
commit
e400d5dabd
|
@ -9,7 +9,7 @@ def call(rw_pattern, stages) {
|
||||||
)
|
)
|
||||||
image.inside {
|
image.inside {
|
||||||
withEnv(["KRB5CCNAME=${WORKSPACE}/.krb5cc"]) {
|
withEnv(["KRB5CCNAME=${WORKSPACE}/.krb5cc"]) {
|
||||||
this.stageKinit()
|
stageKinit()
|
||||||
try {
|
try {
|
||||||
stageRemountRW(rw_pattern)
|
stageRemountRW(rw_pattern)
|
||||||
generateStages(stages)
|
generateStages(stages)
|
||||||
|
@ -26,20 +26,20 @@ def call(rw_pattern, stages) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stageKinit() {
|
def stageKinit() {
|
||||||
stage('kinit') {
|
stage('kinit') {
|
||||||
echo 'kinit'
|
echo 'kinit'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stageRemountRW(rw_pattern) {
|
def stageRemountRW(rw_pattern) {
|
||||||
stage('Remount R/W') {
|
stage('Remount R/W') {
|
||||||
echo 'Remount R/W'
|
echo 'Remount R/W'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
generateStages(stages) {
|
def generateStages(stages) {
|
||||||
stages.each { name, playbooks ->
|
stages.each { name, playbooks ->
|
||||||
stage(name) {
|
stage(name) {
|
||||||
playbooks.each { playbook ->
|
playbooks.each { playbook ->
|
||||||
|
@ -49,16 +49,15 @@ generateStages(stages) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stageRemountRO(rw_pattern) {
|
def stageRemountRO(rw_pattern) {
|
||||||
echo 'Remount R/O'
|
echo 'Remount R/O'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def postCleanup() {
|
||||||
postCleanup() {
|
|
||||||
echo 'Cleanup'
|
echo 'Cleanup'
|
||||||
}
|
}
|
||||||
|
|
||||||
postFailure(err) {
|
def postFailure(err) {
|
||||||
currentBuild.result = 'FAILURE'
|
currentBuild.result = 'FAILURE'
|
||||||
echo "${err}"
|
echo "${err}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue