Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Docker Image Trigger for Bamboo

David Lund July 19, 2017

Hi

Just to give some context of what I'm trying to do - just incase im going down a rabbit hole. I have a requirement whereby i would like to trigger a build in bamboo whereby when a parent docker image has changed i.e. a user inputs an image I wish to trigger on e.g.

FROM namespace/image:latest

I can then call http://my-internal-docker-repository/namespace/image/manifests/latest periodically and get the sha256 to decide if its changed since the last check and hence run my build.

 

It would appear I could create an eventlistener: https://developer.atlassian.com/bamboodev/bamboo-plugin-guide/bamboo-plugin-module-types/bamboo-event-listeners

and listen for a "ChangeDetectionRequiredEvent". Should the sha256 be different (I assume i can store the digest somewhere - presumably like a source repository can store a revision) I would be able to then fire a BuildTriggerEvent

 

Is my assumption correct?

1 answer

1 vote
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2017

If you have Bamboo license you can check source code of com.atlassian.bamboo.trigger.polling.PollingTriggerQuartzJob to check how create new trigger and execute build. Also good reference for custom trigger functionality is at repository https://bitbucket.org/atlassianlabs/bamboo-after-deployment-trigger

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events