init commit

master
rforstner 2021-11-23 12:53:21 +01:00
parent ac04db2584
commit 7575a50d82
2 changed files with 30 additions and 1 deletions

30
Jenkinsfile vendored
View File

@ -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()

View File

@ -127,6 +127,7 @@ Do **NOT** clone this repo, create a fork instead.
- Repository Name: **your forked repository**
- Behavious: **According to screenshot**
<br>
![Jenkins Create Pipieline Step 2](assets/jenkins_create_pipeline_2.PNG)
<br>