generated from gCubeCI/Pipeline-Docker-Template
update stages conditions
This commit is contained in:
parent
770888e43d
commit
5fa3955500
|
@ -45,9 +45,10 @@ pipeline {
|
|||
}
|
||||
stage('Add new pending deploy ') {
|
||||
when{
|
||||
allOf{
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
anyOf{
|
||||
triggeredBy 'BuildUpstreamCause'
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
triggeredBy 'UpstreamCause'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
|
@ -56,9 +57,10 @@ pipeline {
|
|||
}
|
||||
stage('Deploy from job ') {
|
||||
when{
|
||||
allOf{
|
||||
environment name: 'IS_CRON', value: 'False'
|
||||
anyOf{
|
||||
triggeredBy 'BuildUpstreamCause'
|
||||
environment name: 'IS_CRON', value: 'False'
|
||||
triggeredBy 'UpstreamCause'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
|
|
Loading…
Reference in New Issue