Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Do bamboo specs require webhooks?

My bamboo server is wrapped up inside our internal network. I could expose it, but before I do so are webhooks required for bamboo-specs to work? Is there some way that the conventional polling method bamboo usually uses could not be employed?

2 answers

1 accepted

2 votes
Answer accepted

Apart from Bitbucket Server, the other repository types Bitbucket Cloud, Git, Github and Subversion need webhooks for bamboo specs to work.

Bamboo 6.5 Release Notes

Setting up webhooks

See also https://jira.atlassian.com/browse/BAM-19837

One of the blockers we're facing is that even with exposing our Bamboo server to external network and obviously securing it properly, webhooks still don't work because they require that Anonymous access is enabled on the Bamboo server - which we have obviously disabled for security reasons.

See https://jira.atlassian.com/browse/BAM-19874

Do you know if anonymous users need access to the plan itself, or just enabled globally (and then ensure every plan and project excludes them)?

Jeyanthan I Atlassian Team Jun 15, 2018

You do not need a permission to trigger a scan. All you need to do is to use the appropriate REST API to trigger specs scanning.

For Eg: You can use a curl URL like below to trigger a scan as the destination for the webhook so that Bamboo knows about new commits:

curl -X POST -H "Content-Type: application/json" http://BambooHostURL:8085/rest/api/latest/repository/scan?repositoryId=123456

 Hope that clarifies.

... but that obviously only works if Anonymous access is enabled. If it's disabled then you will get an error:

curl : The remote server returned an error: (401) Unauthorized. 
Jeyanthan I Atlassian Team Jun 18, 2018

Agreed. This bug should be fixed soon in the upcoming release. Thanks for clarifying @Miroslav Sommer.

Hi @Jeyanthan I

We have upgraded to Bamboo 6.7.1 and enabled the configuration in Bamboo Administration -> Security -> [x] Allow anonymous users to trigger remote repository change detection and Bamboo Specs detection

How exactly does it work?

We have specifically disabled anonymous access in Bamboo and that needs to stay disabled.

Do we need to give anonymous users access to our build plans? Currently only logged in users or specific groups have access to build plans. Anonymous users don't have access to anything.

 

When I run 

 curl -X POST -k -H "Content-Tye: application/json" -i https://<bamboo_server_url>/rest/api/latest/repository/scan?repositoryId=30539782

... it returns HTTP/1.1 204

But when I go to the related Linked Repository settings -> Spec status

https://<bamboo_server_url>/admin/configureLinkedRepositories.action?repositoryId=131694701

... it shows "Never scanned". There is a "Scan" button so I could scan the repo manually, but obviously we can't do that and it has to be triggered by webhooks.

Foong Atlassian Team Nov 05, 2018

it returns HTTP/1.1 204

The request does not have any return message by default.

it shows "Never scanned". There is a "Scan" button so I could scan the repo manually, but obviously we can't do that and it has to be triggered by webhooks.

Try reloading the page before clicking on the "Spec status" tab.

This webhook only works with new commit or changes to Bamboo Specs. Is there any new commit to the Bamboo Specs file? 

I am facing the same problem. Even though there are new commits in the bamboo specs, in specs status it is showing never scanned.

I have created the webhook which has the url to trigger the scan bamboo specs for the repository.

Can someone please help why this is happening ?

We are having the same issue, were you able to resolve?

Jeyanthan I Atlassian Team Jan 28, 2020

Hey @Mike Newton , this appears to be an old thread. There are multiple issues discussed here. Which issue are you referring to? Which version of bamboo are you running?

Cheers, Jey

Hi Jey, I've realized we are on an old version. We're going to upgrade and see if that makes a difference, I was referring to a webhook that is returning a 204 but not triggering a bamboo build.

Like Jeyanthan I likes this
Jeyanthan I Atlassian Team Jan 28, 2020

Thanks for clarifying. The latest version definitely has enhanced features and bug fixes. For now, your atlassian-bamboo.log should hint you the reason for trigger failure.

You may also use this java property to add verbose output to your log:

"-Dbamboo.specs.log.level=DEBUG" in <Bamboo-install>/bin/setenv.sh under JVM_SUPPORT_RECOMMENDED_ARGS.

You would need to restart Bamboo to apply the setting.

Hope that helps.

Cheers, Jey.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

179 views 4 6
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