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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.