-
Bug
-
Resolution: Not A Defect
-
Major
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" : [
]
}
},
"origin/mri" : {
"buildNumber" : 50,
"buildResult" : null,
"revision" : {
"SHA1" : "f68f612f42908af792e831613deb4b6fe43ff513",
"branch" : [
]
}
}
},
"lastBuiltRevision" : {
"SHA1" : "a0b422c02d45c71ca6e5317eb3aa6026d0f4ada6",
"branch" : [
]
},
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?