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

Exported API for SCMRevisionAction & SCMSource

      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.

          [JENKINS-50777] Exported API for SCMRevisionAction & SCMSource

          Jesse Glick added a comment -

          Merged but unreleased.

          Jesse Glick added a comment - Merged but unreleased.

          Jesse Glick added a comment -

          Also need reliable access to the repository identity; again, using BuildData is unreliable.

          Jesse Glick added a comment - Also need reliable access to the repository identity; again, using BuildData is unreliable.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/jenkins/scm/api/SCMSource.java
          http://jenkins-ci.org/commit/scm-api-plugin/77799131b869c9e6b7e346e745378057fdf7d15c
          Log:
          JENKINS-50777 Also allow an SCMSource to define exported fields (but do not define any generic ones).

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/jenkins/scm/api/SCMSource.java http://jenkins-ci.org/commit/scm-api-plugin/77799131b869c9e6b7e346e745378057fdf7d15c Log: JENKINS-50777 Also allow an SCMSource to define exported fields (but do not define any generic ones).

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/jenkins/scm/api/SCMSource.java
          http://jenkins-ci.org/commit/scm-api-plugin/ba21d6ea8d45852ed6a5fa9ccf2002b60d0abb42
          Log:
          Merge pull request #53 from jglick/export-JENKINS-50777

          JENKINS-50777 Also allow an SCMSource to define exported fields

          Compare: https://github.com/jenkinsci/scm-api-plugin/compare/bed5b69fe4d0...ba21d6ea8d45

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/jenkins/scm/api/SCMSource.java http://jenkins-ci.org/commit/scm-api-plugin/ba21d6ea8d45852ed6a5fa9ccf2002b60d0abb42 Log: Merge pull request #53 from jglick/export- JENKINS-50777 JENKINS-50777 Also allow an SCMSource to define exported fields Compare: https://github.com/jenkinsci/scm-api-plugin/compare/bed5b69fe4d0...ba21d6ea8d45

          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/eef6bd570fc96d4447d45bee543ea8ba07e4e976
          Log:
          JENKINS-50777 Export GitHubSCMSource.

          {repoOwner,repository}

          .

          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/eef6bd570fc96d4447d45bee543ea8ba07e4e976 Log: JENKINS-50777 Export GitHubSCMSource. {repoOwner,repository} .

          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

          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

          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.

          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.

          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

          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

          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.

          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.

          Mark Waite added a comment -

          Included in git plugin 3.9.0 released 12 May 2018

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

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

              Created:
              Updated:
              Resolved: