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

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

              Created:
              Updated:
              Resolved: