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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Bamboo repo change detection using regular expression, matching multi-line commit message


I've set up repository change direction on a job with the following regular expression match:

Exclude changesets:

.*\[skip[ -]ci\].*

When I push a commit with a single line commit message like this:

chore(build): this is a build to skip [skip ci]

The commit is ignored, as expected. However, if I push a commit with a multiline commit message:

chore(build): this is a multi-line message [skip ci]
this should not build but it does

The change is detected and a build triggered.

What's the correct regular expression to detect [skip-ci] correctly even when there are multiple lines of text in the commit message?

1 answer

1 accepted

0 votes
Answer accepted
robhit Atlassian Team Feb 15, 2018

Hi Scott,

Thanks for your question!

I hope the below will answer your question:

.*\[skip[ -]ci\].*((.|\n)*)

This will include 'n' number of lines.



Suggest an answer

Log in or Sign up to answer

Atlassian Community Events