Does anyone know how to get list of files that were committed and got Bamboo CI server triggered? My aim is to get a list of changed files during build process and to validate them (PHPlint, validating twig files..) on Bamboo with custom scripts. Problem is that Bamboo always does "git clone", so searching git log can't help.
Crossposting an answer found on https://community.atlassian.com/t5/Answers-Developer-Questions/Bamboo-Determine-git-commit-details-files-changed-before/qaq-p/483322
This requirement could be fulfilled by using Bamboo REST API: /rest/api/latest/result/<bamboo.buildKey>/<bamboo.build.Number>?expand=changes.change.files
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With