init commit

master
rforstner 2021-11-23 12:59:07 +01:00
parent 5792e5dd6e
commit 7a69bd8c80
1 changed files with 8 additions and 3 deletions

11
Jenkinsfile vendored
View File

@ -59,7 +59,7 @@
//is the environment yaml even that good, should python be refactored to only execute one environment at time //is the environment yaml even that good, should python be refactored to only execute one environment at time
stage('Detect Jenkins Environment') { stage('Detect Jenkins Environment CN') {
when { when {
expression { return env.JENKINS_URL ==~ 'china' } expression { return env.JENKINS_URL ==~ 'china' }
} }
@ -70,15 +70,20 @@
print env.JENKINS_URL print env.JENKINS_URL
print env.BRANCH_NAME print env.BRANCH_NAME
} }
}
stage('Detect Jenkins Environment EMEA') {
when { when {
expression { return env.JENKINS_URL =!~ 'china' } expression { return env.JENKINS_URL =!~ 'china' }
} }
steps { steps {
print env.JENKINS_URL
print env.BRANCH_NAME
//env.JENKINS_URL //env.JENKINS_URL
//env.BRANCH_NAME //env.BRANCH_NAME
print env.JENKINS_URL
print env.BRANCH_NAME
} }
} }
} }