Skip to content

Commit

Permalink
[JENKINS-40422] Use scanCredentials instead of checkoutCredentials
Browse files Browse the repository at this point in the history
When you use a separate set of credentials for checkout and scanning
it makes sense to use the scan credentials to notify, for example it could
be that checkout credentials are of type SSH whilst scan are of type username/
password
  • Loading branch information
raul-arabaolaza committed Dec 19, 2016
1 parent ecf5373 commit d88d474
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -409,7 +409,7 @@ private String getSha1() {
}

private String tryToInferCredentialsId() {
String credentialsID = getSource().getCredentialsId();
String credentialsID = getSource().getScanCredentialsId();
if (credentialsID != null) {
return credentialsID;
} else {
Expand Down

0 comments on commit d88d474

Please sign in to comment.