continuous integration - Triggering build on Bamboo for pull requests on Stash? -
i want know if possible configure similar accomplished jenkins+github the request builder plugin. specifically, triggering build on bamboo when pull request created on stash, using pull request branch build.
bonus points triggering new builds when pull request updated, or if command given through comments (like jenkins plugin).
i can't see way that, , can't see way create plugin make possible. maybe merge-checks trigger plugins work, looks triggered when goes @ pull request, not triggered when pull request arrives.
we solved writing stash plugin, has been open sourced , available on github.
the trick annotate methods com.atlassian.event.api.eventlistener
, stash call them when corresponding event happens. listen events such as:
com.atlassian.stash.event.pull.pullrequestcommentaddedevent
com.atlassian.stash.event.pull.pullrequestopenedevent
com.atlassian.stash.event.pull.pullrequestreopenedevent
com.atlassian.stash.event.pull.pullrequestrescopedevent
aside that, follow atlassian guidelines create plugins. open sourced plugin can serve reference.
Comments
Post a Comment