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

Not able to set specificUsersAuthorizationStrategy with job DSL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • job-dsl-plugin
    • None

      Non of following syntaxes worked:

       

                  properties {
                      authorizeProjectProperty {
                          specificUsersAuthorizationStrategy{
                              userid('admin')
                          }
                      }
                  }

       

       

                  properties {
                      authorizeProjectProperty {                    
                          specificUsersAuthorizationStrategy{
                               userid = 'admin'
                          }
                      }
                  }

       

       

                  properties {
                      authorizeProjectProperty {
                          specificUsersAuthorizationStrategy(userid = 'admin')
                      }
                  }

       

       

                  properties {
                      authorizeProjectProperty {
                          specificUsersAuthorizationStrategy('admin')
                      }
                  }

       

       

                  properties {
                      authorizeProjectProperty {
                          specificUsersAuthorizationStrategy('admin', false, '', '')
                      }
                  }

       

      worked

            jamietanna Jamie Tanna
            bmaehr Bernhard M
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: