Use git commit messages to control whether a bamboo project starts building

We are thinking of using a keyword in a git commit to specify that a commit should not trigger the bamboo build server. For example, we could make a commit saying NO-START that would not start the build server.

I know that you can see the last commit message using the command `git log -p -1` if you're in a directory with a git repository, which could be done from a task, but ideally we want to check before it ever gets to the build server.

Is there any way to do this with Bamboo in the cloud?

1 answer

This widget could not be displayed.

Hello Jake,

You can configure plan dependency. Plan A will be triggered by repository modification and search for necessary string in git log. There will be Plan B without triggers which will be added as child plan for Plan A.

When Plan A is successful, it triggers Plan B

More details in documentation https://confluence.atlassian.com/display/BAMBOOCLOUD/Setting+up+plan+build+dependencies

Unfortunately you'd need to create such plan for every repository you're using.

Hi Jake. You mentioned "and search for necessary string in git log". This implies that I can add a repository-polling trigger, but only run the plan if there's a certain word/phrase in a recent Git commit message. I don't see this option in Bamboo, can you elaborate?

(Asked the same question here: https://community.atlassian.com/t5/Bamboo-questions/Trigger-build-if-Git-commit-message-contains-a-certain-word/qaq-p/458809#M14513)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

78 views 1 0
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