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

Allow SCMSource implementations to expose merge and origin of change request heads

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Acceptance criteria

      • Change requests as implemented in the SCM API expose to consumer code
        • the merge strategy
        • the origin
        • the origin branch name
      • In order to retain binary compatibility, some of this information may only be available / correct when the corresponding SCM API implementation plugin has been updated.
      • The Branch API plugin has been updated with tests of any new significant code paths relating to branch discovery
      • The Branch API plugin exposes the origin and origin branch name when such information is provided by the corresponding SCM API implementation plugin.
      • The GitHub Branch Source plugin has been updated to expose the new change request information.
        • Upgrading from the 2.x.y series of the GitHub Branch Source shall not trigger a rebuild storm.
        • Upgrading from the 1.x series of the GitHub Branch Source should make best effort not to trigger a rebuild storm.
      • The Bitbucket Branch Source plugin has been updated to expose the new change request information
        • Upgrading from the 2.x.y series of the Bitbucket Branch Source shall not trigger a rebuild storm.
        • Upgrading from the 1.x series of the Bitbucket Branch Source should make best effort not to trigger a rebuild storm.
      • The SCM API's implementer guide has been updated to reflect the new recommendations for implementing change requests.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/test/java/integration/EventsTest.java
            http://jenkins-ci.org/commit/branch-api-plugin/809ea046b98d070bc0d1004b95ddf3c37fda0c9f
            Log:
            JENKINS-43433 No need to differentiate between MERGE and REBASE

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/test/java/integration/EventsTest.java http://jenkins-ci.org/commit/branch-api-plugin/809ea046b98d070bc0d1004b95ddf3c37fda0c9f Log: JENKINS-43433 No need to differentiate between MERGE and REBASE
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMHead.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSource.java
            src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/d8fc1a8b42495a918576f6688442744fa1c4d6e5
            Log:
            JENKINS-43433 Adapt to new API

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMHead.java src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSource.java src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java http://jenkins-ci.org/commit/github-branch-source-plugin/d8fc1a8b42495a918576f6688442744fa1c4d6e5 Log: JENKINS-43433 Adapt to new API
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMHead.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/8125cbf0c60b859015654bddf7d4a051380ff301
            Log:
            JENKINS-43433 Update to latest -SNAPSHOT

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMHead.java http://jenkins-ci.org/commit/github-branch-source-plugin/8125cbf0c60b859015654bddf7d4a051380ff301 Log: JENKINS-43433 Update to latest -SNAPSHOT
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            http://jenkins-ci.org/commit/github-branch-source-plugin/f695f9f2a1682f7cd597ca716fc5b4ca0e914969
            Log:
            JENKINS-43433 Pick up SCM API -SNAPSHOT

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml http://jenkins-ci.org/commit/github-branch-source-plugin/f695f9f2a1682f7cd597ca716fc5b4ca0e914969 Log: JENKINS-43433 Pick up SCM API -SNAPSHOT
            Hide
            jamesdumay James Dumay added a comment -

            Seems this has been merged.

            Show
            jamesdumay James Dumay added a comment - Seems this has been merged.

              People

              • Assignee:
                stephenconnolly Stephen Connolly
                Reporter:
                stephenconnolly Stephen Connolly
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: