Skip to content

Commit

Permalink
Merge pull request voxpupuli#889 from jhoblitt/groovy_helper/api_tokens
Browse files Browse the repository at this point in the history
fix puppet_helper.groovy exception when listing users on recent jenkins versions
  • Loading branch information
jhoblitt authored Sep 21, 2018
2 parents 6ea2c61 + 1f327cd commit 24fb880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/puppet_helper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Util {
def tokenProperty = user.getProperty(jenkins.security.ApiTokenProperty)
if (tokenProperty != null) {
conf['api_token_public'] = tokenProperty.getApiToken()
conf['api_token_plain'] = tokenProperty.@apiToken.getPlainText()
conf['api_token_plain'] = tokenProperty.@apiToken?.getPlainText()
}

def passwordProperty = user.getProperty(hudson.security.HudsonPrivateSecurityRealm.Details)
Expand Down

0 comments on commit 24fb880

Please sign in to comment.