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 -
          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 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: