add new stages

This commit is contained in:
Roberto Cirillo 2022-04-15 15:57:10 +02:00
parent 3fc9985bc0
commit bf6fbb53b3
1 changed files with 20 additions and 1 deletions

21
Jenkinsfile vendored
View File

@ -45,9 +45,28 @@ pipeline {
echo 'New deploy of ${job} appended to the deploy file'
}
}
stage('Check Agent configuration for automatic builds ') {
when{
allOf{
not {
triggeredBy 'TimerTrigger'
}
environment name: 'IS_CRON', value: 'False'
}
}
steps {
echo 'Do Nothing: cron disabled on agent'
}
}
stage('Deploy from job ') {
when{
environment name: 'IS_CRON', value: 'False'
allOf{
not {
triggeredBy 'BuildUpstreamCause'
}
environment name: 'IS_CRON', value: 'False'
}
}
steps {
echo 'New deploy of ${job} appended to the deploy file'