generated from gCubeCI/Pipeline-Docker-Template
removed unused vars, add new stage
This commit is contained in:
parent
72347be1a7
commit
d5aff9fe1d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue