• 1.0-japan-m9, 1.0-m7, 1.0-m10

      In scope

      • Add an API so that for any branch or pull request resource you can execute a new build for it

          [JENKINS-35797] API for running a branch and pull request

          Ivan Meredith added a comment -

          jdumay After thinking on this some more, I think we should do the queue api first. The reason is that once we schedule a build, we get a reference to queue.

          Ivan Meredith added a comment - jdumay After thinking on this some more, I think we should do the queue api first. The reason is that once we schedule a build, we get a reference to queue.

          Michael Neale added a comment -

          Michael Neale added a comment - cc tfennelly

          James Dumay added a comment -

          please also add an example for this in the REST readme

          James Dumay added a comment - please also add an example for this in the REST readme

          Darth Vader added a comment -

          Can the API honor the git plugin Included and Excluded region when triggering a build?
          checkout scm: [
          $class: 'GitSCM',
          branches: [[name: '*/master']],
          userRemoteConfigs: [[url: 'https://[path]/parent.git']],
          extensions: [[
          $class: 'PathRestriction', excludedRegions: '', includedRegions: 'subA/.*'
          ]]
          ]
          For example, only trigger a build if the commit is in subA

          Darth Vader added a comment - Can the API honor the git plugin Included and Excluded region when triggering a build? checkout scm: [ $class: 'GitSCM', branches: [ [name: '*/master'] ], userRemoteConfigs: [[url: 'https://[path]/parent.git']], extensions: [[ $class: 'PathRestriction', excludedRegions: '', includedRegions: 'subA/.*' ]] ] For example, only trigger a build if the commit is in subA

          James Dumay added a comment -

          dvader it should honour your git plugin configuration but we've made no special way to facilitate changing this info per request. I hope that helps!

          James Dumay added a comment - dvader it should honour your git plugin configuration but we've made no special way to facilitate changing this info per request. I hope that helps!

            imeredith Ivan Meredith
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: