Skip to content
Snippets Groups Projects
Commit 39211a87 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fixed missing escaping

parent 831d8a8a
No related branches found
No related tags found
No related merge requests found
......@@ -170,10 +170,10 @@ def doTest(String label, String buildType) {
// Copy test results files to the workspace, otherwise they are not available to the xunit plugin
sh """
cd /scratch/build-${JOB_NAME}
if [ -z "${CTESTOPTS}" ]; then
CTESTOPTS="${MAKEOPTS}"
if [ -z "\${CTESTOPTS}" ]; then
CTESTOPTS="\${MAKEOPTS}"
fi
sudo -u msk_jenkins ctest --no-compress-output ${CTESTOPTS} -T Test -V || true
sudo -u msk_jenkins ctest --no-compress-output \${CTESTOPTS} -T Test -V || true
sudo -u msk_jenkins sed -i Testing/*/Test.xml -e 's_\\(^[[:space:]]*<Name>\\)\\(.*\\)\\(</Name>\\)\$_\\1${label}.${buildType}.\\2\\3_'
sudo -u msk_jenkins cp -r /scratch/build-${JOB_NAME}/Testing "${WORKSPACE}"
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment