Hi All,
I want to create a JIRA task automatically for failed builds. I know there is no direct support in Bamboo to achieve this but I can call JIRA REST API in Post Build Commands section.
On my agent Curl only runs under Cygwin terminal. How to run this below command from Post Build Commands under Cygwin terminal?
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/
Thanks,
Kapil