I'm wandering the conditional steps behavior,
when a commit failed on a pipeline, does another next commit will true on the change-set
Let say:
Change-set detect on File A
Does commit 2 pipeline detected as true in conditional change-set ?
Hi @xicond
Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!
Basically how Changesets works is that Changesets allows steps to be executed only when a condition or rule is satisfied. Currently, the only condition supported is changesets. Use changesets to execute a step only if one of the modified files matches the expression in includePaths. Changesets condition only checks whether if a file has been changed with a commit or not.
Please let me know if my explanation was clear, we're here to help.
Best Regards,
Norbert
Atlassian Bitbucket Cloud Support
Thanks for the reply,
I already know the Changesets > includePaths
But my query is, if there're 2 or more commits, and I did pull-requests hook in pipelines, could it be process all commits diff in the pull requests for the Changesets, instead of just each commit, because I could be missed/fail on previous commit, then the step need to retry
Regards,
~xicond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @xicond
Thank you for your reply and for your explanation.
In a pull-request pipeline, all commits are taken into account, and if you provide an includePath list of patterns, a step will be executed when at least one commit change matches one of the conditions
Please see: https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/#condition
Best Regards,
Norbert
Atlassian Bitbucket Cloud Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.