|
In case it helps, here's the 2.4.0 output:
{{<hudson.plugins.git.util.BuildData plugin="g...@2.4.0"> <buildsByBranchName> <entry> <string>refs/remotes/origin/master</string> <hudson.plugins.git.util.Build> <marked plugin="git-c...@1.19.1"> <sha1>3c202cd190e10e469d749ff13ffce0e64affce7f</sha1> <branches class="list"> <hudson.plugins.git.Branch> <sha1 reference="../../../sha1"/> <name>refs/remotes/origin/master</name> </hudson.plugins.git.Branch> </branches> </marked> <revision reference="../marked"/> <hudsonBuildNumber>1433</hudsonBuildNumber> </hudson.plugins.git.util.Build> </entry> </buildsByBranchName> <lastBuild reference="../buildsByBranchName/entry/hudson.plugins.git.util.Build"/> <remoteUrls> <string>g...@github.com:Magnetme/repo.git</string> </remoteUrls> </hudson.plugins.git.util.BuildData>}}
And here's the 2.4.1 output
{{ <hudson.plugins.git.util.BuildData plugin="g...@2.4.1"> <buildsByBranchName/> <lastBuild> <marked plugin="git-c...@1.19.1"> <sha1>9cb02a46a4e9eaaa7432da4b16f803fd7cec709d</sha1> <branches class="list"> <hudson.plugins.git.Branch> <sha1 reference="../../../sha1"/> <name>refs/remotes/origin/master</name> </hudson.plugins.git.Branch> </branches> </marked> <revision reference="../marked"/> <hudsonBuildNumber>1403</hudsonBuildNumber> </lastBuild> <remoteUrls> <string>g...@github.com:Magnetme/repo.git</string> </remoteUrls> </hudson.plugins.git.util.BuildData> }}
I noticed that the way branch information is stored is different from 2.4.0, and the buildsByBranchName is empty. However, branch information is stored in another element called branches. Maybe the bug is that it tries to retrieve the info from the wrong element?
Here's a sample of the build.xml of the job that builds everything but master. I ommitted all but one entry to save space.
{{ <hudson.plugins.git.util.BuildData plugin="g...@2.4.1"> <buildsByBranchName> <entry> <string>origin/redirect-frontend</string> <hudson.plugins.git.util.Build> <marked plugin="git-c...@1.19.1"> <sha1>a617b48a11d3f1e80cb2e76ec6b419222ed6ec89</sha1> <branches class="list"> <hudson.plugins.git.Branch> <sha1 reference="../../../sha1"/> <name>origin/redirect-frontend</name> </hudson.plugins.git.Branch> </branches> </marked> <revision plugin="git-c...@1.19.1"> <sha1 reference="../../marked/sha1"/> <branches class="list"> <hudson.plugins.git.Branch reference="../../../marked/branches/hudson.plugins.git.Branch"/> </branches> </revision> <hudsonBuildNumber>3572</hudsonBuildNumber> </hudson.plugins.git.util.Build> </entry> </buildsByBranchName> <lastBuild reference="../buildsByBranchName/entry[26]/hudson.plugins.git.util.Build"/> <remoteUrls> <string>g...@github.com:Magnetme/repo.git</string> </remoteUrls> </hudson.plugins.git.util.BuildData> }}
|