generated from gCubeCI/Pipeline-Docker-Template
restored CD agent for testing
This commit is contained in:
parent
db1c8ec581
commit
3550005598
|
@ -27,7 +27,7 @@ backupList = agent_root_folder+'/'+agent_deploy_backup_filename;
|
|||
|
||||
pipeline {
|
||||
agent {
|
||||
label 'deploy'
|
||||
label 'CD'
|
||||
}
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
|
@ -212,7 +212,7 @@ def appendFooter( def File) {
|
|||
def deploy(String service, String version, String host){
|
||||
def now = new Date();
|
||||
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host);
|
||||
def statusCode = sh( script: "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", returnStdout: true);
|
||||
def statusCode = sh( script: "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;", returnStdout: true);
|
||||
println("Deploy ended with status: "+statusCode);
|
||||
sh("""
|
||||
echo " last exit code \$?";
|
||||
|
|
Loading…
Reference in New Issue