Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,773
Community Members
 
Community Events
176
Community Groups

Conditional Steps Behavior

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

  • commit 1: change File A, but Fail
  • commit 2: change File B to fix it

Does commit 2 pipeline detected as true in conditional change-set ?

 

1 answer

1 accepted

0 votes
Answer accepted
Norbert C Atlassian Team Feb 15, 2022

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

Hi @Norbert C 

Thanks for the reply, 

I already know the ChangesetsincludePaths
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

Norbert C Atlassian Team Feb 21, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events