fix ansicolor plugin declaration

This commit is contained in:
Roberto Cirillo 2022-05-09 13:01:55 +02:00
parent d866f93a8a
commit 97ff85b943
1 changed files with 10 additions and 3 deletions

9
Jenkinsfile vendored
View File

@ -28,10 +28,11 @@ backupList = agent_root_folder+'/'+agent_deploy_backup_filename;
pipeline { pipeline {
agent { agent {
label 'deploy' label 'deploy'
}
options { options {
ansiColor('xterm') ansiColor('xterm')
} }
}
triggers { triggers {
// every fifteen minutes (perhaps at :07, :22, :37, :52) // every fifteen minutes (perhaps at :07, :22, :37, :52)
// cron('H/15 * * * *') // cron('H/15 * * * *')
@ -220,6 +221,12 @@ def deploy(String service, String version, String host){
""") """)
} }
def checkup(String service, String version, String host){
sh("""
exit 0;
)
}
def cleanup(def DEPLOY_FILE, def BACKUP_FILE){ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
sh ''' sh '''
echo "cleanup $DEPLOY_FILE"; echo "cleanup $DEPLOY_FILE";