From b9a428b90fb8235c903717d243494383e6c0568a Mon Sep 17 00:00:00 2001 From: Steve Boardwell Date: Sat, 18 Apr 2020 16:53:43 +0200 Subject: [PATCH] Add debug output --- src/JobDslGenUtil.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/JobDslGenUtil.groovy b/src/JobDslGenUtil.groovy index f823eca..0b326b2 100644 --- a/src/JobDslGenUtil.groovy +++ b/src/JobDslGenUtil.groovy @@ -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 ] } }