[Asterisk-code-review] CI: Yet Another stab at creds (asterisk[13])
George Joseph
asteriskteam at digium.com
Thu Aug 16 13:23:07 CDT 2018
George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/9904
Change subject: CI: Yet Another stab at creds
......................................................................
CI: Yet Another stab at creds
Change-Id: I768850780d39151c5dd8e2bb1a4b24776727958e
---
M tests/CI/unittests.jenkinsfile
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/04/9904/1
diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile
index 4af9153..8cf9f4a 100644
--- a/tests/CI/unittests.jenkinsfile
+++ b/tests/CI/unittests.jenkinsfile
@@ -83,8 +83,8 @@
* We need to retrieve the jenkins2 gerrit https credentials
* in case this review is in a restricted project.
*/
- withCredentials([usernamePassword(credentialsId: env.JENKINS_GERRIT_CREDS,
- usernameVariable: 'GERRIT_USER_NAME')]) {
+ withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",
+ passwordVariable: 'GERRIT_USER_PW', usernameVariable: 'GERRIT_USER_NAME')]) {
sh "printenv | sort"
@@ -114,12 +114,11 @@
credentialsId: env.JENKINS_GERRIT_CREDS,
name: env.GERRIT_NAME,
refspec: env.GERRIT_REFSPEC,
- url: env.GERRIT_PROJECT_URL
+ url: env.GERRIT_PROJECT_URL.replaceAll("http(s)?://", "http\$1://${GERRIT_USER_NAME}@")
]
]
]
}
-// url: env.GERRIT_PROJECT_URL.replaceAll("http(s)?://", "http\$1://${env.GERRIT_USER_NAME}@")
sh "sudo tests/CI/setupJenkinsEnvironment.sh"
}
--
To view, visit https://gerrit.asterisk.org/9904
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I768850780d39151c5dd8e2bb1a4b24776727958e
Gerrit-Change-Number: 9904
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180816/201af1c8/attachment.html>
More information about the asterisk-code-review
mailing list