Skip to content
Permalink
Browse files

[JENKINS-40422] Use scanCredentials for infering

  • Loading branch information
raul-arabaolaza committed Dec 19, 2016
1 parent 77a59ad commit 90e63f1d945fc1218e590145e52e7fed296d9ae2
@@ -410,9 +410,7 @@ private String getSha1() {

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

0 comments on commit 90e63f1

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