generated from gCubeCI/Pipeline-Docker-Template
fix syntax
This commit is contained in:
parent
c0ce9ddef3
commit
4d16e4d272
|
@ -114,15 +114,16 @@ pipeline {
|
||||||
environment name: 'IS_SCHEDULED', value: 'True'
|
environment name: 'IS_SCHEDULED', value: 'True'
|
||||||
}
|
}
|
||||||
// in this case the pipeline is triggered by the gCubeBuilder pipeline
|
// in this case the pipeline is triggered by the gCubeBuilder pipeline
|
||||||
equals(actual: "$TRIGGER_JOB", expected: 'gCubeBuilder')
|
equals(actual: "${TRIGGER_JOB}", expected: 'gCubeBuilder')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'Cron build enabled. Deploy from system ongoing'
|
echo 'Cron build enabled. Deploy from system ongoing'
|
||||||
script {
|
script {
|
||||||
echo "pipeline triggered by $TRIGGER_JOB"
|
echo "pipeline triggered by $TRIGGER_JOB"
|
||||||
if("$TRIGGER_JOB" == "gCubeBuilder"){
|
if("${TRIGGER_JOB}" == "gCubeBuilder"){
|
||||||
// do something
|
// do something
|
||||||
|
println("Pipeline triggered by gCubeBuilder")
|
||||||
}else{
|
}else{
|
||||||
def deployFolder="CD-${env.BUILD_NUMBER}";
|
def deployFolder="CD-${env.BUILD_NUMBER}";
|
||||||
deployPendingJobs(deployFolder);
|
deployPendingJobs(deployFolder);
|
||||||
|
|
Loading…
Reference in New Issue