Remote trigger is not starting the build process

Gareth Benjamin December 13, 2017

I want to trigger a build whenever Docker Hub gets a new image of my application. Not sure if I'm doing it the right way, but I have setup a remote trigger in my build plan. When I hit the API using Postman (or a browser), I get a success response saying

"A build of DEV-DU was triggered by remote http call".

However no builds are kicked off.

 

The API I am hitting is

https://<bamboo URL>/api/rest/updateAndBuild.action?buildKey=DEV-DU

 

Is this the best way to start a build once Docker Hub gets a new image?

When I hit the API and get a success, why is my build not starting?

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2017

Use the /queue/{projectKey}-{buildKey} API to add builds to the queue.

Check out https://docs.atlassian.com/atlassian-bamboo/REST/6.0.0/#d2e2150

Gareth Benjamin December 14, 2017

How do I setup the auth so I can call the api from docker hub? I get this error when trying to access the api "Client must be authenticated to access this resource." IF I login, I also get this error when trying to call the api from the browser "XSRF check failed". Turning off XSRF checks in security settings doesn't seem to work either

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events