From: George Joseph Date: Thu, 16 Aug 2018 18:11:11 +0000 (-0600) Subject: CI: Another stab at creds X-Git-Tag: 13.23.0-rc1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1e294c6707d19b0b6ae3f376e1b6f281436fd16;p=thirdparty%2Fasterisk.git CI: Another stab at creds Change-Id: I5b1dc3b354789e676c27a4e1fc42f5c3343cc994 --- diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile index 332975c2aa..4af91538e8 100644 --- a/tests/CI/unittests.jenkinsfile +++ b/tests/CI/unittests.jenkinsfile @@ -69,7 +69,6 @@ pipeline { stage ("Checkout") { sh "sudo chown -R jenkins:users ." env.GERRIT_PROJECT_URL = env.GERRIT_CHANGE_URL.replaceAll(/\/[0-9]+$/, "/${env.GERRIT_PROJECT}") - sh "printenv | sort" /* * Jenkins has already automatically checked out the base branch @@ -85,7 +84,9 @@ pipeline { * in case this review is in a restricted project. */ withCredentials([usernamePassword(credentialsId: env.JENKINS_GERRIT_CREDS, - usernameVariable: 'gerrit_user')]) { + usernameVariable: 'GERRIT_USER_NAME')]) { + + sh "printenv | sort" checkout scm: [$class: 'GitSCM', branches: [[name: env.GERRIT_BRANCH ]], @@ -113,11 +114,12 @@ pipeline { credentialsId: env.JENKINS_GERRIT_CREDS, name: env.GERRIT_NAME, refspec: env.GERRIT_REFSPEC, - url: env.GERRIT_PROJECT_URL.replaceAll("http(s)?://", "http\$1://${gerrit_user}@") + url: env.GERRIT_PROJECT_URL ] ] ] } +// url: env.GERRIT_PROJECT_URL.replaceAll("http(s)?://", "http\$1://${env.GERRIT_USER_NAME}@") sh "sudo tests/CI/setupJenkinsEnvironment.sh" }