In Scope

      Modify for any job type:

      • enable or disable the job
      • change it's name
      • look up if its enabled or disabled
      • pass an "organization" name with every request

      Modify for multi-branch pipelines:

      • Enable/disable automatically building branches
      • Set a pattern (ant glob or regex) for building branches that match the pattern
        • e.g. feature/* will only build branches starting with the feature/ prefix.
      • Enable/disable automatically building pull requests
      • Enable/disable building Pull Requests originating from forked repositories
        • Use case: we only build PRs who's branches are in the same source repo for security purposes
      • change credentials used
      • change repo details (url, or owner/name in the case of github/bitbucket)
      • Change api endpoint (or bitbucket ssh port)

      Future extensibility

      • As there are other branch source and repo types, the api should be able to cope with config specific to different branch sources, avoid assuming the world is git

      Out of scope:

      • Add multiple branch sources
      • Changing the job type
      • Deleting the job
      • Create a freestyle job type
      • Changing the branch source type from, say, github to bitbucket

          [JENKINS-35872] API for editing pipeline settings

          James Dumay created issue -
          James Dumay made changes -
          Sprint New: 1.0-m8 [ 46 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Labels New: api
          James Dumay made changes -
          Attachment New: Pipline Config - Branching tab.png [ 17317 ]
          Attachment New: Pipline Config - General tab.png [ 17316 ]
          Michael Neale made changes -
          Summary Original: API for changing pipeline settings New: API for creating new multibranch pipeline or changing settings
          Michael Neale made changes -
          Summary Original: API for creating new multibranch pipeline or changing settings New: API for creating new multibranch pipeline and changing settings
          James Dumay made changes -
          Link New: This issue blocks UX-541 [ UX-541 ]
          Michael Neale made changes -
          Description Original: In Scope
          For any job:
          * enable or disable the job
          * change is name
          * look up if its enabled or disabled

          For multi-branch pipelines:
          * Enable/disable automatically building branches
          * Set a pattern (ant glob or regex) for building branches that match the pattern
          ** e.g. {{feature/*}} will only build branches starting with the {{feature/}} prefix.
          * Enable/disable automatically building pull requests
          * Enable/disable building Pull Requests originating from forked repositories
          ** Use case: we only build PRs who's branches are in the same source repo for security purposes
          New: In Scope

          Modify for any job type:
          * enable or disable the job
          * change is name
          * look up if its enabled or disabled

          Create a multi-branch pipeline:
          * Take

          Modify for multi-branch pipelines:
          * Enable/disable automatically building branches
          * Set a pattern (ant glob or regex) for building branches that match the pattern
          ** e.g. {{feature/*}} will only build branches starting with the {{feature/}} prefix.
          * Enable/disable automatically building pull requests
          * Enable/disable building Pull Requests originating from forked repositories
          ** Use case: we only build PRs who's branches are in the same source repo for security purposes

          Out of scope:
          * Add multiple branch sources
          * Changing the branch source "type"
          * Changing the job type
          * Deleting the job
          Michael Neale made changes -
          Summary Original: API for creating new multibranch pipeline and changing settings New: API for creating and editing new multibranch pipeline and changing settings
          Michael Neale made changes -
          Description Original: In Scope

          Modify for any job type:
          * enable or disable the job
          * change is name
          * look up if its enabled or disabled

          Create a multi-branch pipeline:
          * Take

          Modify for multi-branch pipelines:
          * Enable/disable automatically building branches
          * Set a pattern (ant glob or regex) for building branches that match the pattern
          ** e.g. {{feature/*}} will only build branches starting with the {{feature/}} prefix.
          * Enable/disable automatically building pull requests
          * Enable/disable building Pull Requests originating from forked repositories
          ** Use case: we only build PRs who's branches are in the same source repo for security purposes

          Out of scope:
          * Add multiple branch sources
          * Changing the branch source "type"
          * Changing the job type
          * Deleting the job
          New: In Scope

          Modify for any job type:
          * enable or disable the job
          * change it's name
          * look up if its enabled or disabled

          Create a multi-branch pipeline, by taking the following (minimal) params:

          * * Take a type of branchSource (could be git, github, bitbucket)
          * Take a pattern (ant glob or regex) for building branches that match the pattern (includes)
          * If plain Git:
          ** take repo url
          ** take optional credential name field
          * If github/bitbucket
          ** take owner and repository name
          ** take optional api endpoint (in the case of bitbucket, optional ssh port)
          ** take optional credentials field
           

          Modify for multi-branch pipelines:
          * Enable/disable automatically building branches
          * Set a pattern (ant glob or regex) for building branches that match the pattern
          ** e.g. {{feature/*}} will only build branches starting with the {{feature/}} prefix.
          * Enable/disable automatically building pull requests
          * Enable/disable building Pull Requests originating from forked repositories
          ** Use case: we only build PRs who's branches are in the same source repo for security purposes
          * change credentials used
          * change repo details (url, or owner/name in the case of github/bitbucket)
          * Change api endpoint (or bitbucket ssh port)

          Future extensibility
          * As there are other branch source and repo types, the api should be able to cope with config specific to different branch sources, avoid assuming the world is git


          Out of scope:
          * Add multiple branch sources
          * Changing the branch source "type"
          * Changing the job type
          * Deleting the job
          * Create a freestyle job type

            Unassigned Unassigned
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: