Is it really possible to start a bamboo plan using jira webhooks?

Hi,

I read that we could start a bamboo plan from jira web hooks

http://blogs.atlassian.com/2012/10/jira-5-2-remote-integration-webhooks/

https://developer.atlassian.com/display/JIRADEV/JIRA+Webhooks+Overview

BUT...

I'm trying to start a bamboo plan using jira webhooks,

Here is my configuration :

I tried the following ( both with and without the issue details ):

URL:

http://server:8085/rest/api/latest/queue/IN-TEST?os_authType=basic?bamboo.variable.JIRA_ISSUE_ID=${issue.key}

http://bamboo-ci.ironsrc.com:8085/rest/api/latest/queue/IN-TEST

I get the following error :

"Client error - 401 when posting to web hook"

In the logs I can see that jira automatically added a user_id and user_key to the URL , the user_id is indeed my ID BUT user_key is again my user_id

e.g :

401 when posting to web hook at 'http://server:8085/rest/api/latest/queue/IN-TEST?user_id=odedpr&user_key=odedpr

I also tried http://<yourbamboo host>/api/rest/updateAndBuild.action?buildKey=<projectkey>-<buildkey>

according to this

https://answers.atlassian.com/questions/313394/jira-webhook-trigger-bamboo-build

but that just got to a null resource.

Now .. I'm missing the authentication part .. where should I put the authentication ? or does jira suppose to send my jira credentials ?

Although this feature is a MAJOR one .. it really doesn't have enough documention .

I don't want to use an external plugin if this should work .. any help would be appriciated.

1 answer

1 accepted

No basic authentication for webhooks.

https://jira.atlassian.com/browse/JRA-31953

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,156 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot