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

Bamboo specs getting 401 on webhook

I'm trying to get Gitlab working with Bamboo Specs on Bamboo 6.5. I have created a linked repository with Bamboo specs enabled. From Bamboo I received a 'scan' URL, which I inserted in Gitlab Intergrations.

Whenever the hook is hit, I get te following response:

{"message":"You do not have sufficient read permissions","status-code":401}

The push from Gitlab has no credentials, only the URL in format:

https://<bamboo server>/rest/api/latest/repository/scan?repositoryId=<id>

3 answers

0 votes

Hi Sander,

Could you please double check if the repository has access to the project you're trying to edit? You can check this in the repository configuration>Bamboo specs tab.

If you want to grant access to a build project, please follow the steps below:

 

To add a Build project:
  1. From the Bamboo header, click Projects.
  2. Click your project.
  3. In the top-right corner, click Project settings.
  4. In the sidebar, click Bamboo Specs repositories.
  5. Select your repository and click Add

More details can be found at the Enabling repository-stored Bamboo Specs page

Thanks.

Hi,

I have checked the steps you described; the repository is for the project an allowed Bamboo Specs repository. The repository is listed in the Bamboo Specs repositories under the project I had written the Bamboo YAML spec for.

But should it work only with that URL? For example, doing a curl -XPOST with that URL  from Bamboo should normally work? When I do that with curl I received the same error.

The project I have described in Bamboo spacs exist, but the plan does not exist, is that correct?

Hi Sander,

Yes, running curl -x  https://<bamboo server>/rest/api/latest/repository/scan?repositoryId=<id> should trigger the change detection in Bamboo.

Did you check if bamboo is throwing any error in the logs?

Yes, the project doesn't need to exist in Bamboo, only the project.

thanks

Even I faced the same issue with Bamboo 6.5 and Github.

Since my dev bamboo is internally hosted, I enabled anonymous access and I could go pass that error.

0 votes

Hi @Sander Cornelissen,

I tested the solution proposed by @Siddhant Gogri and it true, if you're not allowing anonymous users to access Bamboo, the RSS will not be triggered.

As I'm pretty sure this is not the expected behavior, I've raised a bug report:

Please be sure to watch it, so that you are notified when this is fixed in a future release.

Thank you guys for reporting this.

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 ...

203 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