generated from gCubeCI/Pipeline-Docker-Template
update stages conditions
This commit is contained in:
parent
77d0ca7229
commit
770888e43d
|
@ -32,25 +32,10 @@ pipeline {
|
|||
echo 'Deploy from system properly triggered'
|
||||
}
|
||||
}
|
||||
stage('Add new pending deploy ') {
|
||||
when{
|
||||
allOf{
|
||||
not {
|
||||
triggeredBy 'TimerTrigger'
|
||||
}
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo 'New deploy of ${job} appended to the deploy file'
|
||||
}
|
||||
}
|
||||
stage('Nothing to do ') {
|
||||
when{
|
||||
allOf{
|
||||
not {
|
||||
triggeredBy 'TimerTrigger'
|
||||
}
|
||||
environment name: 'IS_CRON', value: 'False'
|
||||
}
|
||||
}
|
||||
|
@ -58,13 +43,21 @@ pipeline {
|
|||
echo 'Do Nothing: cron disabled on agent'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Add new pending deploy ') {
|
||||
when{
|
||||
allOf{
|
||||
triggeredBy 'BuildUpstreamCause'
|
||||
environment name: 'IS_CRON', value: 'True'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
echo 'New deploy of ${job} appended to the deploy file'
|
||||
}
|
||||
}
|
||||
stage('Deploy from job ') {
|
||||
when{
|
||||
allOf{
|
||||
not {
|
||||
triggeredBy 'BuildUpstreamCause'
|
||||
}
|
||||
environment name: 'IS_CRON', value: 'False'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue