remove exit 1 from Nothing to do stage

This commit is contained in:
Roberto Cirillo 2022-10-17 16:32:53 +02:00
parent f48df8bc6a
commit 0c3d39c63d
1 changed files with 4 additions and 6 deletions

10
Jenkinsfile vendored
View File

@ -141,16 +141,14 @@ pipeline {
} }
stage('Nothing to do ') { stage('Nothing to do ') {
when{ when{
anyOf{ allOf{
allOf{ triggeredBy 'TimerTrigger'
triggeredBy 'TimerTrigger' environment name: 'IS_SCHEDULED', value: 'False'
environment name: 'IS_SCHEDULED', value: 'False'
}
} }
} }
steps { steps {
echo 'Going to sleep' echo 'Going to sleep'
sh ' exit 1; ' sh ' exit 0; '
} }
} }
stage('New pending deploy ') { stage('New pending deploy ') {