My use case is based on the "Specific commit message in Jira, build should trigger in Bamboo.
For example, creating/updating the comment like "Build the Bamboo plan" in Jira, Bamboo should trigger the build.
For other comments in Jira, it should not trigger the build.
Following are the steps taken,
I have created the webhook in Jira, eg) comment ~ "\"Build the Bamboo plan\"".
first time, if I give comments like "initiate build" --> Bamboo build was not triggered.
if I give the comments like "Build the Bamboo plan" --> build triggered
Now, if I give the comments like "initiate the build" --> Build is triggered (which should not happen)
Can anyone kindly help on the above scenario.
With the combination of the Automation for Jira (A4J) and Better DevOps Automation apps you could create an automation rule for this use case:
This could work for any major CI/CD system:
Disclaimer: I am a developer working on the second app used for this answer.
you can of course create an automation like that, but I would be careful in your situation.
However, if you really are trying to achieve this, you could use Automation for Jira Pro or ScriptRunner for Jira for that purpose, depending on what you already have.
In there, listen to the Issue Updated Event and check for changes in the comments body, using a regex. Then, if that was a match, fire a webhook or execute a script that fires a webhook.
You can also create new buttons in the More Menu of your issue, this way you would have a more controlled way of executing your build.
Andrej from greenique
Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events