removed unused vars, add new stage

This commit is contained in:
Roberto Cirillo 2022-04-15 15:06:25 +02:00
parent 72347be1a7
commit d5aff9fe1d
1 changed files with 11 additions and 3 deletions

14
Jenkinsfile vendored
View File

@ -20,7 +20,7 @@ pipeline {
'''
}
}
stage('clone and exec') {
stage('Deploy from system') {
when{
allOf{
triggeredBy 'TimeTrigger'
@ -31,7 +31,7 @@ pipeline {
echo 'Deploy from system properly triggered'
}
}
stage('Planning new deploy') {
stage('Add new pending deploy ') {
when{
environment name: 'IS_CRON', value: 'True'
}
@ -39,6 +39,14 @@ pipeline {
echo 'New deploy of ${job} appended to the deploy file'
}
}
stage('Deploy from job ') {
when{
environment name: 'IS_CRON', value: 'False'
}
steps {
echo 'New deploy of ${job} appended to the deploy file'
}
}
}
post {
@ -46,8 +54,8 @@ pipeline {
script {
sh '''
echo ' jobs currently appended:'
cat ./${ACTION_DEPLOY_FILE}.csv
'''
//cat ./${ACTION_DEPLOY_FILE}.csv
}
}
success {