I’ve noticed that some commit messages (containing Jira issue numbers) are missing from Octopus build information. We use the
BuildInformation task in Azure DevOps Server to generate and push the information, and it seems that only the top 50 commit messages are included.
I have tested this locally, and it seems that
getBuildChanges method from
azure-devops-node-api/BuildApi returns only top 50 by default (some of our builds have a lot more than that). This may be an undocumented default of the underlying Azure DevOps API, however it would be good if the
BuildInformation task would get all changes, perhaps through the use of top parameter to increase the number of changes returned?
In my test, I explicitly specified the
top: 1000 parameter, and verified that all expected changes are returned. There should be a better way, by using continuation tokens, but I haven’t found a way to get a token from the library methods.