Skipping Builds After Commit

I have a pipeline which performs a build, increments the package version and commits and pushes the result back into the branch. Currently this causes an infinite build cycle.

In other systems, it is possible to prevent this by including a special tag in the commit message; for example including [ci skip] in the commit message.

Can this be done?

One way would be to switch branch in the script and check the updated code into a branch which does not trigger a pipeline. I was wondering if there is an alternative?

1 answer

1 accepted

0 vote

Hi William,

we had a similar issue with some of our projects that use maven. To solve the issue we created a separate 'release' branch. Our workflow looks like this: 

  • user creates a branch from master (e.g. my-feature-branch)
  • when the work is done, the user merges his branch (e.g. through a pull request) to 'release' branch
  • the release branch then does the actual release (in your case incrementing the package version) and merges this back to master branch

Let me know if this helped you?

That was my assumption as well so it's good to have an independent confirmation. I have implemented a similar workflow and it works. Thanks for your help.

I would still prefer to have some way of preventing a specific build.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,607 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you