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