Commit 24fb880c authored by Joshua Hoblitt's avatar Joshua Hoblitt Committed by GitHub

Merge pull request #889 from jhoblitt/groovy_helper/api_tokens

fix puppet_helper.groovy exception when listing users on recent jenkins versions
parents 6ea2c611 1f327cdf
......@@ -102,7 +102,7 @@ class Util {
def tokenProperty = user.getProperty(
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(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment