From: Felipe Vicens Date: Thu, 25 Jun 2020 19:43:48 +0000 (+0200) Subject: Setting OSM_HOSTNAME for robot test execution X-Git-Tag: release-v9.0-start~112 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=039ed1770a11e2dbba96f42e1ad05df476c33bbb;p=osm%2Fdevops.git Setting OSM_HOSTNAME for robot test execution Change-Id: Ib553abbeec44480658df877f7591bdc336ea34b1 Signed-off-by: Felipe Vicens --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 672d4862..b85543c0 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -84,7 +84,7 @@ def run_robot_systest(stackName,tagName,testName,envfile=null,kubeconfig=null,cl sh(script: "touch ${tempdir}/env") envfile="${tempdir}/env" } - sh "docker run --network net${stackName} --env-file ${envfile} -v ${clouds}:/etc/openstack/clouds.yaml -v ${kubeconfig}:/root/.kube/config -v ${tempdir}:/robot-systest/reports opensourcemano/tests:${tagName} -c -t ${testName}" + sh "docker run --network net${stackName} --env OSM_HOSTNAME=osm${stackName}_nbi --env-file ${envfile} -v ${clouds}:/etc/openstack/clouds.yaml -v ${kubeconfig}:/root/.kube/config -v ${tempdir}:/robot-systest/reports opensourcemano/tests:${tagName} -c -t ${testName}" sh "cp ${tempdir}/* ." outputDirectory = sh(returnStdout: true, script: "pwd").trim() println ("Present Directory is : ${outputDirectory}")