This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      The folder currently does not support authorization/permission elements because the variable availablePermissions seems to be null (not declared/initializes).

      https://jenkinsci.github.io/job-dsl-plugin/#path/folder-authorization

      You can also check this in the API browser:

      http://job-dsl.herokuapp.com/

      folder('example-2') {
          authorization {
              permission('hudson.model.Item.Discover', 'anonymous')
          }
      }
      

      Exception:

      java.lang.NullPointerException: Cannot invoke method contains() on null object
      	at java_util_Set$contains$2.call(Unknown Source)
              at javaposse.jobdsl.dsl.helpers.AuthorizationContext.permission(AuthorizationContext.groovy:49)
      

      I guess, a simple variable declaration should be enough. But I'am not that groovy aware to create pull requests for this.

            Assignee:
            Daniel Spilker
            Reporter:
            Thomas Wabner
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: