Skip to content
Snippets Groups Projects
Commit ad36c4ba authored by George Joseph's avatar George Joseph
Browse files

CI: Fix log artifact paths

Change-Id: I55136de8f4d9c3b56bd4d054306a187bb04a4b7d
parent 4842af63
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,8 @@ pipeline { ...@@ -132,6 +132,8 @@ pipeline {
sh 'sudo ./tests/CI/installAsterisk.sh' sh 'sudo ./tests/CI/installAsterisk.sh'
} }
sh "sudo rm -rf ${groupDir} || : "
checkout scm: [$class: 'GitSCM', checkout scm: [$class: 'GitSCM',
branches: [[name: "${BRANCH_NAME}"]], branches: [[name: "${BRANCH_NAME}"]],
extensions: [ extensions: [
...@@ -149,9 +151,9 @@ pipeline { ...@@ -149,9 +151,9 @@ pipeline {
sh "tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --test-command='${groupTestcmd}'" sh "tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --test-command='${groupTestcmd}'"
archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true, archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: true,
artifacts: "${groupDir}**" artifacts: "${groupDir}/asterisk-test-suite-report.xml, ${groupDir}/logs/**, ${groupDir}/core*.txt"
junit testResults: "${groupDir}", junit testResults: "${groupDir}/asterisk-test-suite-report.xml",
healthScaleFactor: 1.0, healthScaleFactor: 1.0,
keepLongStdio: true keepLongStdio: true
} }
......
...@@ -5,6 +5,9 @@ ASTETCDIR=$DESTDIR/etc/asterisk ...@@ -5,6 +5,9 @@ ASTETCDIR=$DESTDIR/etc/asterisk
pushd $TESTSUITE_DIR pushd $TESTSUITE_DIR
sudo ./cleanup-test-temnants.sh
sudo chown -R jenkins:users .
runner sudo PYTHONPATH=./lib/python/ ./runtests.py --cleanup ${TEST_COMMAND} || : runner sudo PYTHONPATH=./lib/python/ ./runtests.py --cleanup ${TEST_COMMAND} || :
if [ -f asterisk-test-suite-report.xml ] ; then if [ -f asterisk-test-suite-report.xml ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment