From: George Joseph Date: Tue, 17 Nov 2020 23:04:14 +0000 (-0700) Subject: test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fjenkinstest-16;p=thirdparty%2Fasterisk.git test Change-Id: I50cdbe0a59bae9edce951a16b3ee28441268d560 --- diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile index 1a0876d701..97e0f91a27 100644 --- a/tests/CI/unittests.jenkinsfile +++ b/tests/CI/unittests.jenkinsfile @@ -38,7 +38,7 @@ pipeline { gerritBuildFailedVerifiedValue: -1, gerritBuildUnstableVerifiedValue: -1, gerritProjects: [ - [branches: [[compareType: 'PLAIN', pattern: "${BRANCH_NAME}"]], + [branches: [[compareType: 'PLAIN', pattern: "${env.BRANCH_NAME}"]], compareType: 'REG_EXP', disableStrictForbiddenFileVerification: false, pattern: '^(Security-)?asterisk.*' @@ -154,7 +154,7 @@ pipeline { stage ('Build') { echo 'Building..' - sh "./tests/CI/buildAsterisk.sh --branch-name=${BRANCH_NAME} --output-dir=${outputdir} --cache-dir=/srv/cache" + sh "./tests/CI/buildAsterisk.sh --branch-name=${env.BRANCH_NAME} --output-dir=${outputdir} --cache-dir=/srv/cache" archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: false, artifacts: "${outputdir}/*" @@ -164,7 +164,7 @@ pipeline { def outputfile = "${outputdir}/unittests-results.xml" def testcmd = "test execute all" - sh "sudo ./tests/CI/installAsterisk.sh --uninstall-all --branch-name=${BRANCH_NAME} --user-group=jenkins:users" + sh "sudo ./tests/CI/installAsterisk.sh --uninstall-all --branch-name=${env.BRANCH_NAME} --user-group=jenkins:users" sh "tests/CI/runUnittests.sh --user-group=jenkins:users --output-dir='${outputdir}' --output-xml='${outputfile}' --unittest-command='${testcmd}'"