Change-Id: I6743c08d9423ab8cdbb88335bbf30811aa484168
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
}
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'
}