From: George Joseph Date: Wed, 25 Jul 2018 15:20:20 +0000 (-0600) Subject: CI: Explicitly pass BRANCH_NAME to buildAsterisk and installAsterisk X-Git-Tag: 13.23.0-rc1~51^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21168ba931e2c490f035da4988bee592b9813eb2;p=thirdparty%2Fasterisk.git CI: Explicitly pass BRANCH_NAME to buildAsterisk and installAsterisk Change-Id: I652f4a0ea5107c778e27a78bccb67b18b0c4e087 --- diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile index a0580e5803..82a39a3f55 100644 --- a/tests/CI/gates.jenkinsfile +++ b/tests/CI/gates.jenkinsfile @@ -122,7 +122,7 @@ pipeline { img.inside(dockerOptions + " --name ${bt}-build") { echo 'Building..' env.CCACHE_DIR = "/srv/cache/ccache" - sh "./tests/CI/buildAsterisk.sh --output-dir=${outputdir} --cache-dir=/srv/cache" + sh "./tests/CI/buildAsterisk.sh --branch-name=${BRANCH_NAME} --output-dir=${outputdir} --cache-dir=/srv/cache" archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: false, artifacts: "${outputdir}/*" @@ -148,7 +148,7 @@ pipeline { img.inside("${dockerOptions} --name ${bt}-${groupName}") { lock("${JOB_NAME}.${NODE_NAME}.installer") { - sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users' + sh "sudo ./tests/CI/installAsterisk.sh --branch-name=${BRANCH_NAME} --user-group=jenkins:users" } sh "sudo rm -rf ${groupDir} || : " diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile index ea08e38bc1..60b0edea5e 100644 --- a/tests/CI/periodics-daily.jenkinsfile +++ b/tests/CI/periodics-daily.jenkinsfile @@ -47,14 +47,14 @@ pipeline { stage ("Build") { echo 'Building..' env.CCACHE_DIR = "/srv/cache/ccache" - sh "./tests/CI/buildAsterisk.sh --output-dir=${outputdir} --cache-dir=/srv/cache" + sh "./tests/CI/buildAsterisk.sh --branch-name=${BRANCH_NAME} --output-dir=${outputdir} --cache-dir=/srv/cache" archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: false, artifacts: "${outputdir}/*" } stage ("Docs") { - sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users' + sh "sudo ./tests/CI/installAsterisk.sh --branch-name=${BRANCH_NAME} --user-group=jenkins:users" def docUrl = env.GIT_URL.replaceAll(/\/[^\/]+$/, "/publish-docs") checkout scm: [$class: 'GitSCM', diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile index f44c5777e2..7ef40e7988 100644 --- a/tests/CI/ref_debug.jenkinsfile +++ b/tests/CI/ref_debug.jenkinsfile @@ -47,7 +47,7 @@ pipeline { img.inside(dockerOptions + " --name ${bt}-build") { echo 'Building..' env.CCACHE_DIR = "/srv/cache/ccache" - sh "./tests/CI/buildAsterisk.sh --ref-debug --output-dir=${outputdir} --cache-dir=/srv/cache" + sh "./tests/CI/buildAsterisk.sh --ref-debug --branch-name=${BRANCH_NAME} --output-dir=${outputdir} --cache-dir=/srv/cache" archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: false, artifacts: "${outputdir}/*" @@ -73,7 +73,7 @@ pipeline { img.inside("${dockerOptions} --name ${bt}-${groupName}") { lock("${JOB_NAME}.${NODE_NAME}.installer") { - sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users' + sh "sudo ./tests/CI/installAsterisk.sh --branch-name=${BRANCH_NAME} --user-group=jenkins:users" } sh "sudo rm -rf ${groupDir} || : " diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile index bfe56e3293..438213b43b 100644 --- a/tests/CI/unittests.jenkinsfile +++ b/tests/CI/unittests.jenkinsfile @@ -124,7 +124,7 @@ pipeline { stage ('Build') { echo 'Building..' - sh "./tests/CI/buildAsterisk.sh --output-dir=${outputdir} --cache-dir=/srv/cache" + sh "./tests/CI/buildAsterisk.sh --branch-name=${BRANCH_NAME} --output-dir=${outputdir} --cache-dir=/srv/cache" archiveArtifacts allowEmptyArchive: true, defaultExcludes: false, fingerprint: false, artifacts: "${outputdir}/*" @@ -134,7 +134,7 @@ pipeline { def outputfile = "${outputdir}/unittests-results.xml" def testcmd = "test execute all" - sh 'sudo ./tests/CI/installAsterisk.sh --user-group=jenkins:users' + sh "sudo ./tests/CI/installAsterisk.sh --branch-name=${BRANCH_NAME} --user-group=jenkins:users" sh "tests/CI/runUnittests.sh --user-group=jenkins:users --output-dir='${outputdir}' --output-xml='${outputfile}' --unittest-command='${testcmd}'"