We would like to create the issue in Jira automatically in case of build / deployment failure in Bamboo. I have searched few ways to do this and one of the method is making use of REST API and Pre-post build command runner plugin.
But the plugin is supported only till 6.2.* version, i would need this for latest version of Bamboo.
Is there any other way we can achieve this?
Hello @Deepak Sandilya
Currently, your requirement is an open ticket- https://jira.atlassian.com/browse/BAM-2537
Thank you Tarun. Is there any other ways that we can use by the time the requirement gets fulfilled?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can trigger a REST call to create a issue in JIRA in case of build failure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, But is there any utility which helps to get the exit status of the build to make the decision on Success vs Failure to create the ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could create a parallel stage that periodically checks the status of the primary job and once it's either completed or failed, create your ticket and finish as appropriate.
http://<server>/bamboo/rest/api/latest/result/<projkey>?buildstate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Couldn't you just send an E-Mail notification to jour Jira server?
At Plan Configuration/Notifications there are several events which could be used.
Maybe if you'd use a Jira plugin like "Power Scripts" to parse the contents of the mail you could even create an issue in the appropriate project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.