1

I am using ant migration tool in bitbucket pipelines to deploy metadata into Salesforce instance. This pipeline runs for every commit pushed to master branch. The build process takes a considerable amount of time since it always deploy the whole set of files.

As a work around my plan is to find only the set of files which are changed since last successful build. Then generate the package.xml file accordingly. To evaluate the difference I need to know the commit hash of last successful build.

Does anyone know how to get the commit hash of last successful build in bitbucket pipelines?

Thank you!

1
  • Not knowing the details of your release pipelines I suggest you can use Bitbucket build status API, which displays the status of builds and filter GREEN. – Mitesh Jul 18 '20 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.