]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Fix log artifact paths
authorGeorge Joseph <gjoseph@digium.com>
Wed, 11 Jul 2018 19:54:04 +0000 (13:54 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 11 Jul 2018 19:53:41 +0000 (14:53 -0500)
Change-Id: I55136de8f4d9c3b56bd4d054306a187bb04a4b7d

tests/CI/gates.jenkinsfile
tests/CI/runTestsuite.sh

index 9ce14ef2dae168530266dec0fc6dad488ed936d8..40c7916b39ab523e8cdb00839d88c5ad00c05800 100644 (file)
@@ -132,6 +132,8 @@ pipeline {
                                                                                sh 'sudo ./tests/CI/installAsterisk.sh'
                                                                        }
 
+                                                                       sh "sudo rm -rf ${groupDir} || : "
+                                                                       
                                                                        checkout scm: [$class: 'GitSCM',
                                                                                branches: [[name: "${BRANCH_NAME}"]],
                                                                                        extensions: [
@@ -149,9 +151,9 @@ pipeline {
                                                                        sh "tests/CI/runTestsuite.sh --testsuite-dir='${groupDir}' --test-command='${groupTestcmd}'"
 
                                                                        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,
                                                                                keepLongStdio: true
                                                                }
index 26b09346bea4045040f814611d08e251014073e5..a84a12c9a2514b8eb7634ed5aaceec5c397bc086 100755 (executable)
@@ -5,6 +5,9 @@ ASTETCDIR=$DESTDIR/etc/asterisk
 
 pushd $TESTSUITE_DIR
 
+sudo ./cleanup-test-temnants.sh
+sudo chown -R jenkins:users .
+
 runner sudo PYTHONPATH=./lib/python/ ./runtests.py --cleanup ${TEST_COMMAND} || :
 
 if [ -f asterisk-test-suite-report.xml ]  ; then