If you pull the JSON for a build, you will see the branch name and the SHA1 hash for the commit but you won't see the repository url anywhere.

      This makes life difficult if you're trying to watch more than one project, as you can't disambiguate by the repository.

      {
      "buildsByBranchName" : {
      "origin/master" : {
      "buildNumber" : 1813,
      "buildResult" : null,
      "revision" : {
      "SHA1" : "a0b422c02d45c71ca6e5317eb3aa6026d0f4ada6",
      "branch" : [

      { "SHA1" : "a0b422c02d45c71ca6e5317eb3aa6026d0f4ada6", "name" : "origin/master" }

      ]
      }
      },
      "origin/mri" : {
      "buildNumber" : 50,
      "buildResult" : null,
      "revision" : {
      "SHA1" : "f68f612f42908af792e831613deb4b6fe43ff513",
      "branch" : [

      { "SHA1" : "f68f612f42908af792e831613deb4b6fe43ff513", "name" : "origin/mri" }

      ]
      }
      }
      },
      "lastBuiltRevision" : {
      "SHA1" : "a0b422c02d45c71ca6e5317eb3aa6026d0f4ada6",
      "branch" : [

      { "SHA1" : "a0b422c02d45c71ca6e5317eb3aa6026d0f4ada6", "name" : "origin/master" }

      ]
      },

          [JENKINS-16559] Build api doesn't include git repository

          Jason Marshall created issue -

          Mark Waite added a comment - - edited

          In the JSON output of Git plugin 2.0, Git client plugin 1.4.6, there is an entry in my environment that looks like the repository URL:

          "remoteUrls":["git://wheezy64b/git/mwaite/bin.git"]

          I got that by opening the URL:

          http://wheezy64b:8080/view/cli/job/git-multi-cli-ref/15/api/json

          Does that meet the need?

          Mark Waite added a comment - - edited In the JSON output of Git plugin 2.0, Git client plugin 1.4.6, there is an entry in my environment that looks like the repository URL: "remoteUrls": ["git://wheezy64b/git/mwaite/bin.git"] I got that by opening the URL: http://wheezy64b:8080/view/cli/job/git-multi-cli-ref/15/api/json Does that meet the need?
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147382 ] New: JNJira + In-Review [ 176889 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]

          Mark Waite added a comment -

          Resolved as "not a defect" since the API provides the requested information (repository URL)

          Mark Waite added a comment - Resolved as "not a defect" since the API provides the requested information (repository URL)
          Mark Waite made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            jdmarshall Jason Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: