generated from gCubeCI/Pipeline-Docker-Template
test ansicolor plugin directly on pipeline
This commit is contained in:
parent
b7785e72f1
commit
d866f93a8a
|
@ -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
|
||||
""")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue