Skip to content
Browse files

[JENKINS-40422] Use scanCredentials instead of checkoutCredentials

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/
  • Loading branch information
raul-arabaolaza committed Dec 18, 2016
1 parent ecf5373 commit a902495a7dcd5a613239f02b01109ca741de5dd6
@@ -409,7 +409,8 @@ private String getSha1() {

private String tryToInferCredentialsId() {
String credentialsID = getSource().getCredentialsId();
// Try to use scan credentials if available, if not fall back to checkout credentials
String credentialsID = getSource().getScanCredentialsId();
if (credentialsID != null) {
return credentialsID;
} else {

0 comments on commit a902495

Please sign in to comment.
You can’t perform that action at this time.