X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_stage_3.groovy;h=aef40c1a2838ef466f0fa00fffe31034c3bca2c6;hb=0b503a6739707cf030995399c11ba6fb2ca78ed9;hp=005232b360f70624312a6fce223c740f2bbd5fbf;hpb=34bf143217719276746d986de53f940176d7de09;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 005232b3..aef40c1a 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -50,11 +50,9 @@ def uninstall_osm(stackName) { } def run_systest(stackName,tagName,testName) { - sh """ - tempdir=$(mktemp -d) - docker run -ti --network net${stackName} -v $tempdir:/usr/share/osm-devops/systest/reports osm/osmclient:${tagName} make -C /usr/share/osm-devops/systest ${testName} - cp $tempdir/*.xml . - """ + tempdir = sh(returnStdout: true, script: "mktemp -d").trim() + sh "docker run -ti --network net${stackName} -v ${tempdir}:/usr/share/osm-devops/systest/reports osm/osmclient:${tagName} make -C /usr/share/osm-devops/systest ${testName}" + cp "${tempdir}/*.xml ." junit '*.xml' }