Skip to content

Commit

Permalink
[JENKINS-73172] Infer ID from credentials object if not null for cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
Dohbedoh committed Oct 16, 2024
1 parent a54552c commit 1d34ff2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public GitHubSCMSource build() {
GitHubSCMSource result = new GitHubSCMSource(repoOwner, projectName(), credentials);
result.setId(id());
result.setApiUri(apiUri());
result.setCredentialsId(credentialsId());
result.setCredentialsId(credentials == null ? credentialsId() : credentials.getId());

Check warning on line 132 in src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceBuilder.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 121-132 are not covered by tests
result.setTraits(traits());
return result;
}
Expand Down

0 comments on commit 1d34ff2

Please sign in to comment.