-
Bug
-
Resolution: Fixed
-
Minor
-
None
After upgrading the git-plugin from 3.9.2 to 4.0.0-rc the field "lastBuiltRevision" is missing from the buildData in a projects api/json output.
On version 4.0.0-rc:
{ "_class" : "hudson.model.FreeStyleProject", "name" : "Project", "builds" : [ { "_class" : "hudson.model.FreeStyleBuild", "actions" : [ { "_class" : "hudson.model.ParametersAction" }, { "_class" : "hudson.model.CauseAction" }, { "_class" : "hudson.plugins.git.util.BuildDetails" }, { "_class" : "hudson.plugins.git.GitTagAction" }, { }, { }, { }, { }, { }, { } ], "number" : 42, "result" : "SUCCESS", "timestamp" : 1549043593728, "url" : "https://ci.example.org/view/all/job/Project/42/" }, # ...truncated... ] }
On version 3.9.2 the output includes the following:
{ "_class" : "hudson.plugins.git.util.BuildData", "lastBuiltRevision" : { "SHA1" : "11112222333344445555666777788889999f561" } },
The "Version 4.0.0-rc (January 30, 2019)" changelog is referencing the following:
- Stop bloating build.xml files with BuildData (JENKINS-19022)
Perhaps that's related to the issue.
- is related to
-
JENKINS-57128 Builds array is not created in version 4
- Closed