From d866f93a8a23969f34f9f808777f72e064d06205 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Mon, 9 May 2022 12:56:25 +0200 Subject: [PATCH] test ansicolor plugin directly on pipeline --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4e2ee36..eb5249f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,6 +28,9 @@ backupList = agent_root_folder+'/'+agent_deploy_backup_filename; pipeline { agent { label 'deploy' + options { + ansiColor('xterm') + } } triggers { // every fifteen minutes (perhaps at :07, :22, :37, :52) @@ -64,6 +67,7 @@ pipeline { } steps { echo 'Cron build enabled. Deploy from system ongoing' + echo '\033[34mHello\033[0m \033[33mcolorful\033[0m \033[35mworld!\033[0m' script { // parse the report and extract the data def components = parseCSVList(deployList) @@ -211,6 +215,7 @@ def deploy(String service, String version, String host){ cd /var/lib/jenkins/ansible-repos/ansible-playbooks/d4science-ghn-cluster/; git pull; cd CD; + echo '\033[34mStarting\033[0m \033[33mAnsible\033[0m \033[35mWorld\033[0m' ./deployService.sh $service $version $host """) }