Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64858

Enabling support for Job DSL plugin

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: _unsorted
    • Labels:
      None
    • Similar Issues:

      Description

      It's currently not possible to configure AzureAdAuthorizationMatrix property for either folders or jobs using the https://plugins.jenkins.io/job-dsl

        Attachments

          Activity

          Hide
          mmchr Mads Mohr Christensen added a comment -

          This PR fixes this enabling the use of the following Job DSL syntax:

          folder('project-a') {
            displayName('Project A')
            description('Folder for project A')
            properties {
              azureAdAuthorizationMatrix {
                inheritanceStrategy {
                  inheriting()
                }
                permissions(['hudson.model.Item.Create:authenticated'])
              }
            }
          }
          
          
          freeStyleJob('project-a/example') {
            properties {
              azureAdAuthorizationMatrix {
                inheritanceStrategy {
                  nonInheriting()
                }
                permissions(['hudson.model.Item.Workspace:authenticated'])
              }
            }
          }
          
          Show
          mmchr Mads Mohr Christensen added a comment - This PR fixes this enabling the use of the following Job DSL syntax: folder( 'project-a' ) { displayName( 'Project A' ) description( 'Folder for project A' ) properties { azureAdAuthorizationMatrix { inheritanceStrategy { inheriting() } permissions([ 'hudson.model.Item.Create:authenticated' ]) } } } freeStyleJob( 'project-a/example' ) { properties { azureAdAuthorizationMatrix { inheritanceStrategy { nonInheriting() } permissions([ 'hudson.model.Item.Workspace:authenticated' ]) } } }
          Hide
          timja Tim Jacomb added a comment -

          All issues have been transferred to GitHub.

          See https://github.com/jenkinsci/azure-ad-plugin/issues

          Search the issue title to find it.

          (This is a bulk comment and can't link to the specific issue)

          Show
          timja Tim Jacomb added a comment - All issues have been transferred to GitHub. See https://github.com/jenkinsci/azure-ad-plugin/issues Search the issue title to find it. (This is a bulk comment and can't link to the specific issue)

            People

            Assignee:
            azure_devops Azure DevOps
            Reporter:
            mmchr Mads Mohr Christensen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: