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