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

Make PullRequestSCMRevision public

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In a multibranch pipeline project there is the option to build PR merged with a base branch (typically master or integration branches) to ensure that changes in the final status (merged) are valid.

      In this cases the revision given by the build data refers to the merge commit, not the last PR commit in the remote

      PullRequestSCMRevision contains info about the pull hash and the base hash that is internally used to notify GitHub. This info could be very interesting to third parties like pipeline steps, but the class visibility is default so is not possible to access it.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Raul
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/0fab37bd4700f5b61d842448910d73c784b59bac
            Log:
            JENKINS-39496 Make the class public

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Raul Path: src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java http://jenkins-ci.org/commit/github-branch-source-plugin/0fab37bd4700f5b61d842448910d73c784b59bac Log: JENKINS-39496 Make the class public
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/291c28d8441dcd366a78f5f68ff1a4651b25be87
            Log:
            Merge pull request #89 from raul-arabaolaza/JENKINS-39496

            JENKINS-39496 Make PullRequestSCMRevision public

            Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/a96cb1ff7635...291c28d8441d

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java http://jenkins-ci.org/commit/github-branch-source-plugin/291c28d8441dcd366a78f5f68ff1a4651b25be87 Log: Merge pull request #89 from raul-arabaolaza/ JENKINS-39496 JENKINS-39496 Make PullRequestSCMRevision public Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/a96cb1ff7635...291c28d8441d
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Raul
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/ea48c2100ad4f846e848458510dce4f5e3d1950d
            Log:
            JENKINS-39496 Make the class public

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Raul Path: src/main/java/org/jenkinsci/plugins/github_branch_source/PullRequestSCMRevision.java http://jenkins-ci.org/commit/github-branch-source-plugin/ea48c2100ad4f846e848458510dce4f5e3d1950d Log: JENKINS-39496 Make the class public

              People

              • Assignee:
                rarabaolaza Raul Arabaolaza
                Reporter:
                rarabaolaza Raul Arabaolaza
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: