Skip to content

Commit

Permalink
[JENKINS-40422] Use scanCredentials for infering
Browse files Browse the repository at this point in the history
  • Loading branch information
raul-arabaolaza committed Dec 19, 2016
1 parent 77a59ad commit 90e63f1
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -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 {
Expand Down

0 comments on commit 90e63f1

Please sign in to comment.