Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to run Curl command under Cygwin terminal for Post Build Commands

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

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 15, 2018

Hi! 

 

You can do it by different way:

1. Trigger after where some plan will create issues e.g. curl command

https://bitbucket.org/chystoprudov/bamboo-failtrigger-plugin/src/master/

 

2. Let's do it as final task but it will not work properly. 

 

Cheers,

Gonchik Tsymzhitov 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events