<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9911">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">CI:  Final version of setting correct gerrit creds<br><br>Change-Id: I7729ecceedceb12f52bf18dae259846aa1d993b3<br>---<br>M tests/CI/gates.jenkinsfile<br>1 file changed, 5 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/11/9911/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile</span><br><span>index c23114b..c67e855 100644</span><br><span>--- a/tests/CI/gates.jenkinsfile</span><br><span>+++ b/tests/CI/gates.jenkinsfile</span><br><span>@@ -68,7 +68,6 @@</span><br><span>                                  stage ("Checkout") {</span><br><span>                                               sh "sudo chown -R jenkins:users ."  </span><br><span>                                               env.GERRIT_PROJECT_URL = env.GERRIT_CHANGE_URL.replaceAll(/\/[0-9]+$/, "/${env.GERRIT_PROJECT}")</span><br><span style="color: hsl(0, 100%, 40%);">-                                              sh "printenv | sort"</span><br><span>                                       </span><br><span>                                             /*</span><br><span>                                            * Jenkins has already automatically checked out the base branch</span><br><span>@@ -83,8 +82,10 @@</span><br><span>                                                 * We need to retrieve the jenkins2 gerrit https credentials</span><br><span>                                                  * in case this review is in a restricted project.</span><br><span>                                            */</span><br><span style="color: hsl(0, 100%, 40%);">-                                             withCredentials([usernamePassword(credentialsId: env.JENKINS_GERRIT_CREDS,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                      usernameVariable: 'gerrit_user')]) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                          withCredentials([usernamePassword(credentialsId: "${JENKINS_GERRIT_CREDS}",</span><br><span style="color: hsl(120, 100%, 40%);">+                                                 passwordVariable: 'GERRIT_USER_PW', usernameVariable: 'GERRIT_USER_NAME')]) {</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                                                       sh "printenv | sort"</span><br><span> </span><br><span>                                                   checkout scm: [$class: 'GitSCM',</span><br><span>                                                             branches: [[name: env.GERRIT_BRANCH ]],</span><br><span>@@ -112,7 +113,7 @@</span><br><span>                                                                        credentialsId: env.JENKINS_GERRIT_CREDS,</span><br><span>                                                                     name: env.GERRIT_NAME,</span><br><span>                                                                       refspec: env.GERRIT_REFSPEC,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                    url: env.GERRIT_PROJECT_URL.replaceAll("http(s)?://", "http\$1://${gerrit_user}@")</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                        url: env.GERRIT_PROJECT_URL.replaceAll("http(s)?://", "http\$1://${GERRIT_USER_NAME}@")</span><br><span>                                                                  ]</span><br><span>                                                            ]</span><br><span>                                                    ]</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9911">change 9911</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9911"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16.0 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7729ecceedceb12f52bf18dae259846aa1d993b3 </div>
<div style="display:none"> Gerrit-Change-Number: 9911 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>