diff --git a/Jenkinsfile b/Jenkinsfile
index 6a77053..b5d8eca 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -47,9 +47,37 @@
pip install --upgrade pip
pip install -r requirements.txt
'''
+ print env.JENKINS_URL
}
}
- }
+
+ //DISTINGUISH between China and EMEA JAWS environment and execute the script only on the respective environment
+ //Define how to
+ //e.g. add an additional parameter to python scripts to let python choose on which environment it should execute the script (not that good, as the script should be as generic as possible)
+ //e.g. just put the execute script step in both steps (not that good --> do not repeat yourself)
+ //e.g. create to environment.yaml files and use different files for different jenkins (not that good --> ugly)
+ //is the environment yaml even that good, should python be refactored to only execute one environment at time
+
+
+ stage('Detect Jenkins Environment') {
+ when {
+ expression { return env.JENKINS_URL ==~ 'china' }
+ }
+ steps {
+
+ //env.JENKINS_URL
+ //env.BRANCH_NAME
+ }
+ when {
+ expression { return env.JENKINS_URL =!~ 'china' }
+ }
+ steps {
+ //env.JENKINS_URL
+ //env.BRANCH_NAME
+ }
+
+ }
+
post {
always {
cleanWs()
diff --git a/README.md b/README.md
index 6db5a7a..374d4ca 100644
--- a/README.md
+++ b/README.md
@@ -127,6 +127,7 @@ Do **NOT** clone this repo, create a fork instead.
- Repository Name: **your forked repository**
- Behavious: **According to screenshot**
+
