Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Commit Files List on Bamboo

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.

like image 626
Ivan Stefanovic Avatar asked Nov 27 '25 16:11

Ivan Stefanovic


1 Answers

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

like image 63
Антон Курьян Avatar answered Nov 29 '25 11:11

Антон Курьян



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!