Beispiel #1
0
def folder_auth(parser, xml_parent, data):
    """yaml: folder-auth
    Specifies an authorization matrix for folder

    The available rights are:
      job-create
      job-delete
      job-configure
      job-read
      job-extended-read
      job-discover
      job-build
      job-workspace
      job-cancel
      run-delete
      run-update
      view-create
      view-delete
      view-configure
      view-read
      scm-tag

    Example::

      properties:
        - folder-auth:
            admin:
              - job-create
              - job-delete
              - job-configure
              - job-read
              - job-discover
              - job-build
              - job-workspace
              - job-cancel
              - run-delete
              - run-update
              - view-create
              - view-delete
              - view-configure
              - view-read
              - scm-tag
            anonymous:
              - job-discover
              - job-read
              - job-extended-read
    """
    if data:
        matrix = XML.SubElement(
            xml_parent, 'com.cloudbees.hudson'
            '.plugins.folder.properties'
            '.AuthorizationMatrixProperty')
        auth_settings(matrix, data)
def folder_auth(parser, xml_parent, data):
    """yaml: folder-auth
    Specifies an authorization matrix for folder

    The available rights are:
      job-create
      job-delete
      job-configure
      job-read
      job-extended-read
      job-discover
      job-build
      job-workspace
      job-cancel
      run-delete
      run-update
      view-create
      view-delete
      view-configure
      view-read
      scm-tag

    Example::

      properties:
        - folder-auth:
            admin:
              - job-create
              - job-delete
              - job-configure
              - job-read
              - job-discover
              - job-build
              - job-workspace
              - job-cancel
              - run-delete
              - run-update
              - view-create
              - view-delete
              - view-configure
              - view-read
              - scm-tag
            anonymous:
              - job-discover
              - job-read
              - job-extended-read
    """
    if data:
        matrix = XML.SubElement(xml_parent, 'com.cloudbees.hudson'
                                '.plugins.folder.properties'
                                '.AuthorizationMatrixProperty')
        auth_settings(matrix, data)
Beispiel #3
0
def authorization(parser, xml_parent, data):
    """yaml: authorization
    Specifies an authorization matrix

    The available rights are:
      job-create
      job-delete
      job-configure
      job-read
      job-extended-read
      job-discover
      job-build
      job-workspace
      job-cancel
      run-delete
      run-update
      view-create
      view-delete
      view-configure
      view-read
      scm-tag

    Example::

      properties:
        - authorization:
            admin:
              - job-create
              - job-delete
              - job-configure
              - job-read
              - job-discover
              - job-build
              - job-workspace
              - job-cancel
              - run-delete
              - run-update
              - view-create
              - view-delete
              - view-configure
              - view-read
              - scm-tag
            anonymous:
              - job-discover
              - job-read
              - job-extended-read
    """
    if data:
        matrix = XML.SubElement(
            xml_parent, 'hudson.security'
            '.AuthorizationMatrixProperty')
        auth_settings(matrix, data)
def authorization(parser, xml_parent, data):
    """yaml: authorization
    Specifies an authorization matrix

    The available rights are:
      job-create
      job-delete
      job-configure
      job-read
      job-extended-read
      job-discover
      job-build
      job-workspace
      job-cancel
      run-delete
      run-update
      view-create
      view-delete
      view-configure
      view-read
      scm-tag

    Example::

      properties:
        - authorization:
            admin:
              - job-create
              - job-delete
              - job-configure
              - job-read
              - job-discover
              - job-build
              - job-workspace
              - job-cancel
              - run-delete
              - run-update
              - view-create
              - view-delete
              - view-configure
              - view-read
              - scm-tag
            anonymous:
              - job-discover
              - job-read
              - job-extended-read
    """
    if data:
        matrix = XML.SubElement(xml_parent, 'hudson.security'
                                '.AuthorizationMatrixProperty')
        auth_settings(matrix, data)