add new triggeredBy nagative clause

This commit is contained in:
Roberto Cirillo 2022-04-15 15:49:41 +02:00
parent 98503ec88e
commit 3fc9985bc0
1 changed files with 6 additions and 1 deletions

7
Jenkinsfile vendored
View File

@ -34,7 +34,12 @@ pipeline {
}
stage('Add new pending deploy ') {
when{
environment name: 'IS_CRON', value: 'True'
allOf{
not {
triggeredBy 'TimerTrigger'
}
environment name: 'IS_CRON', value: 'True'
}
}
steps {
echo 'New deploy of ${job} appended to the deploy file'