I know that I can limit specific steps to "condition: changesets: includePaths:" That's not what I'm trying to do.
I know that I can get a list of modified files in the last commit with git diff
. That, unfortunately, isn't sufficient.
What I would like to do is get a list of all of the files which have been modified in this branch since last push. For instance, imagine that you do the following:
- Create a branch.
- Commit A.
- Push.
- Commit B.
- Commit C.
- Commit D.
- Push.
I want a list of the files modified in all of B, C and D so that I can pass them to my testing scripts and evaluate all of the files which have been modified since the last time the pipeline was able to run.
With pull-requests, I think I can do this by diffing BITBUCKET_COMMIT
and BITBUCKET_PR_DESTINATION_BRANCH
. But for pipeline steps which I want to run simply any time commits are pushed, I can't figure out how to get the changeset I want.