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

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

Edited

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.

Thanks,

Robhit

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events