Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Boardwell committed Apr 18, 2020
1 parent 846dad3 commit b9a428b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JobDslGenUtil.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class JobDslGenUtil {
creds.each { provider ->
out.println " Checking credentials provider '$provider'"
def cred = provider.credentials.findResult { it.id == credentialsId ? it : null }
if (cred?.class?.name == 'com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl')
if (cred?.class?.name == 'com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl') {
out.println " Checking credentials provider 'UsernamePasswordCredentialsImpl'"
out.println " Lengths ${cred.password?.size()} : ${cred.username?.size()}"
ret = [ cred.password, cred.username ]
else if (cred?.class?.name == 'org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl') {
} else if (cred?.class?.name == 'org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl') {
out.println " Checking credentials provider 'StringCredentialsImpl'"
out.println " Lengths ${cred.secret?.size()}"
out.println " Lengths ${cred.secret?.size()} : ${cred.username?.size()}"
ret = [ cred.secret ]
}
}
Expand Down

0 comments on commit b9a428b

Please sign in to comment.