Issue Type: Improvement Improvement
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 10/Mar/15 6:39 PM
Description:

There's no support for the authorization closure and respective permission.

I've made it work like:

maintenance-dsl.groovy
folder('maintenance') {
    displayName('Jenkins Maintenance Jobs')

    configure {
        folder_properties = it.get('properties').get(0)
        auth_matrix_prop = folder_properties.appendNode(
            'com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty'
        )
        auth_matrix_prop.appendNode('permission').setValue(
            "<permission>:<username>"
        )
    }
}

It would be nice to support the authorization closure like Jobs do.

Project: Jenkins
Priority: Minor Minor
Reporter: Pedro Algarvio
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to