Hello all;
Is there a way in which i can integrate a jira project with bamboo plan. I want to create a jira issue automatically once the bamboo build fails for that plan. And also want to assign the jira ticket to the person who committed the code at the time of build failure.
thank you
Hello Surya,
Thank you for your question.
As @Gretchen Jones have mentioned, you are able to install Pre-Post Build Command Runner plugin and create a JIRA issue by running the following command:
# USERNAME, i.e.: admin # PASSWORD, i.e.: nimda # PROJECT-KEY, i.e.: BAM curl -D- -X POST -u USERNAME:PASSWORD -H "Content-Type: application/json" -d '{ "fields": { "project": { "key": "PROJECT-KEY" }, "summary": "${bamboo.planName} - ${bamboo.buildNumber}", "description": "Link to the failed build:\n${bamboo.resultsUrl}", "issuetype": { "name": "Bug" }}}' https://JIRA-BASE-URL/rest/api/2/issue/
In Cloud, you can run the same command by running a Script task.
If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.
Thank you for your understanding.
—
Kind regards,
Rafael P. Sperafico
Atlassian Support
I think you could use the pre-post build command plugin to execute a REST command and create a jira ticket. See this plugin:
https://marketplace.atlassian.com/plugins/com.sysbliss.bamboo.plugins.prepost-build-command
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
i am also looking out for the same. Need an automatic jira ticket to be created up on bamboo build failure.
could you explains steps from basic such as 1) what exact plugin to be installed? How to install & integrate the jira and bamboo and how to run
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.