Skip to content

Commit 63505c8

Browse files
authored
Merge pull request #81 from macox/fix_link_jenkins
Fix optional jenkins link
2 parents 68e46cc + a77b395 commit 63505c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jobs/sonarqube/templates/config/SonarApiClient.groovy.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ class SonarApiClient
6060
private static setSonarCredentials() {
6161
def useGithubAuth = <%= p('sonar.use_github_auth') %>
6262
if (useGithubAuth) {
63+
<% if_link('jenkins_master') do |jenkins_master| %>
6364
username = "<%= link('jenkins_master').p('jenkins.github.integration_user.name') %>"
6465
password = "<%= link('jenkins_master').p('jenkins.github.integration_user.access_token') %>"
66+
<% end %>
6567
} else {
6668
username = "<%= p('sonar.admin.username') %>"
6769
password = "<%= p('sonar.admin.password') %>"

0 commit comments

Comments
 (0)