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

Support draft pull requests from GitHub

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      OpenJDK 1.8.0_212-8u212-b01-1~deb9u1-b01, Jenkins 2,164.2, github-branch-source 2.4.5
      os.arch amd64
      os.name Linux
      os.version 4.15.0-1037-azure
    • Similar Issues:

      Description

      We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

      {{when { changeRequest() } }}

      However, if we create the pull requests as draft pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

      <traits>
      <org.jenkinsci.plugins.github_branch_source.BranchDiscoveryTrait>
      <strategyId>1</strategyId>
      </org.jenkinsci.plugins.github_branch_source.BranchDiscoveryTrait>
      <org.jenkinsci.plugins.github_branch_source.OriginPullRequestDiscoveryTrait>
      <strategyId>1</strategyId>
      </org.jenkinsci.plugins.github_branch_source.OriginPullRequestDiscoveryTrait>
      <org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait>
      <strategyId>1</strategyId>
      <trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>
      </org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait>
      <org.jenkinsci.plugins.github_branch_source.TagDiscoveryTrait/>
      </traits>

        Attachments

          Issue Links

            Activity

            asgeirn asgeirn created issue -
            bitwiseman Liam Newman made changes -
            Field Original Value New Value
            Description We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{ when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{ <traits>}}
            {{ <org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
            {{ <strategyId>1</strategyId>}}
            {{ </org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
            {{ <org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
            {{ <strategyId>1</strategyId>}}
            {{ </org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
            {{ <org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
            {{ <strategyId>1</strategyId>}}
            {{ <trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
            {{ </org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
            {{ <org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
            {{ </traits>}}
            We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
            {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
            {{<strategyId>1</strategyId>}}
            {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
            {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
            {{<strategyId>1</strategyId>}}
            {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
            {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
            {{<strategyId>1</strategyId>}}
            {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
            {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
            {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
            {{</traits>}}
            bitwiseman Liam Newman made changes -
            Description We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
            {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
            {{<strategyId>1</strategyId>}}
            {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
            {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
            {{<strategyId>1</strategyId>}}
            {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
            {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
            {{<strategyId>1</strategyId>}}
            {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
            {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
            {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
            {{</traits>}}
            We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            bitwiseman Liam Newman made changes -
            Description We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            when \{ changeRequest() }

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            bitwiseman Liam Newman made changes -
            Description We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            when \{ changeRequest() }

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            bitwiseman Liam Newman made changes -
            Description We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() }}}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {\{when { changeRequest() } }}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            bitwiseman Liam Newman made changes -
            Description We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {\{when { changeRequest() } }}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            We use GitHub PRs as conditions to build prerelease version of our applications using the following pipeline clause:

            {{when \{ changeRequest() } }}

            However, if we create the pull requests as _draft_ pull requests (a nice feature for in-progress work), Jenkins does not detect the PR or create any build for it.  We have enabled the traits below, but I cannot find any hints regarding draft PRs:

            {{<traits>}}
             {{<org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.BranchDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{</org.jenkinsci.plugins.github__branch__source.OriginPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<strategyId>1</strategyId>}}
             {{<trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustContributors"/>}}
             {{</org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>}}
             {{<org.jenkinsci.plugins.github__branch__source.TagDiscoveryTrait/>}}
             {{</traits>}}
            jordanjennings Jordan Jennings made changes -
            Link This issue is related to JENKINS-54126 [ JENKINS-54126 ]
            bitwiseman Liam Newman made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            bitwiseman Liam Newman made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              asgeirn asgeirn
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: