From 7ec7427970f6454c82556aea6f54893f9db00df3 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Tue, 17 Nov 2020 16:04:14 -0700 Subject: [PATCH] test Change-Id: I50cdbe0a59bae9edce951a16b3ee28441268d560 --- tests/CI/unittests.jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}'" -- 2.47.2