generated from gCubeCI/Pipeline-Docker-Template
add dir function for testing
This commit is contained in:
parent
ceaa196895
commit
ecc8b71cbe
|
@ -345,7 +345,12 @@ def deployJobs(def serviceList){
|
||||||
def deploy(String service, String version, String host, String foo){
|
def deploy(String service, String version, String host, String foo){
|
||||||
def now = new Date();
|
def now = new Date();
|
||||||
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host+" with argument: "+foo);
|
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host+" with argument: "+foo);
|
||||||
def statusCode = sh( script: "${ANSIBLE_ROOT_FOLDER}/CD/deployService.sh $service $version $host $foo;", returnStatus: true);
|
dir("${ANSIBLE_ROOT_FOLDER}/CD/"){
|
||||||
|
sh("""
|
||||||
|
git pull;
|
||||||
|
""")
|
||||||
|
def statusCode = sh( script: "./deployService.sh $service $version $host $foo;", returnStatus: true);
|
||||||
|
}
|
||||||
sh("""
|
sh("""
|
||||||
echo " last exit code \$?";
|
echo " last exit code \$?";
|
||||||
""")
|
""")
|
||||||
|
|
Loading…
Reference in New Issue