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

Exported API for SCMRevisionAction & SCMSource

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently there is no good way to use the REST API to look up information about the Git hashes and the like associated with branch projects. You can look up hudson.plugins.git.util.BuildData which records results of a checkout, but this is not necessarily what scm referred to, and it also refers to somewhat different information than what SCMRevisionAction can offer from the Java API.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/d1c4689caf4895db7219788bc09b8058f5a5db84
            Log:
            Merge pull request #181 from jglick/export-JENKINS-50777

            JENKINS-50777 Export GitHubSCMSource.

            {repoOwner,repository}

            Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/2aaa13771c05...d1c4689caf48

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java http://jenkins-ci.org/commit/github-branch-source-plugin/d1c4689caf4895db7219788bc09b8058f5a5db84 Log: Merge pull request #181 from jglick/export- JENKINS-50777 JENKINS-50777 Export GitHubSCMSource. {repoOwner,repository} Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/2aaa13771c05...d1c4689caf48
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/jenkins/branch/BranchSource.java
            src/main/java/jenkins/branch/MultiBranchProject.java
            http://jenkins-ci.org/commit/branch-api-plugin/7f6accc3a946f468da2919cfcf3435520c537ad1
            Log:
            JENKINS-50777 Export the SCMSource(s) from a MultiBranchProject.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/jenkins/branch/BranchSource.java src/main/java/jenkins/branch/MultiBranchProject.java http://jenkins-ci.org/commit/branch-api-plugin/7f6accc3a946f468da2919cfcf3435520c537ad1 Log: JENKINS-50777 Export the SCMSource(s) from a MultiBranchProject.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/main/java/jenkins/branch/BranchSource.java
            src/main/java/jenkins/branch/MultiBranchProject.java
            http://jenkins-ci.org/commit/branch-api-plugin/bd62524703191938798a676ad70ea4b9e103a1f0
            Log:
            Merge pull request #126 from jglick/export-JENKINS-50777

            JENKINS-50777 Export the SCMSource(s) from a MultiBranchProject

            Compare: https://github.com/jenkinsci/branch-api-plugin/compare/e53a2a9d5f51...bd6252470319

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/main/java/jenkins/branch/BranchSource.java src/main/java/jenkins/branch/MultiBranchProject.java http://jenkins-ci.org/commit/branch-api-plugin/bd62524703191938798a676ad70ea4b9e103a1f0 Log: Merge pull request #126 from jglick/export- JENKINS-50777 JENKINS-50777 Export the SCMSource(s) from a MultiBranchProject Compare: https://github.com/jenkinsci/branch-api-plugin/compare/e53a2a9d5f51...bd6252470319
            Hide
            jglick Jesse Glick added a comment -

            Fixes released for scm-api, branch-api, and github-branch-source, ensuring adequate metadata at least for PR builds. Fix in git merged but as of this writing unreleased, meaning metadata will be missing for origin branch builds.

            Show
            jglick Jesse Glick added a comment - Fixes released for scm-api , branch-api , and github-branch-source , ensuring adequate metadata at least for PR builds. Fix in git merged but as of this writing unreleased, meaning metadata will be missing for origin branch builds.
            Hide
            markewaite Mark Waite added a comment -

            Included in git plugin 3.9.0 released 12 May 2018

            Show
            markewaite Mark Waite added a comment - Included in git plugin 3.9.0 released 12 May 2018

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: