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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

953 views 4 7
Read article

Community Events

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

Events near you