feedback
feedback copied to clipboard
Pipeline in PR Close
Use Case:
- Devs create the Pull Request with number 512
- CI launches a Pull Request pipeline[1]
- A new deployment is created, for example (https://pr512.dev.example.com)
- Some automated e2e testing is done
- Devs connect to the environment and make manual testing (very common when developing UI)
- Devs pushes more commits. Goto 2.
- Changeset is accepted and the PR is merged
- https://pr512.dev.example.com is undeployed
To make this happen you need to listen to github webhooks by your own and trigger pipelines via api.
It would be nice to have buildkite native support for this.
[1] Pull Request pipeline understood as something only runs in PR, configured this way
I'm not sure I've parsed this correctly, but I think you're asking for the ability to run a pipeline, or steps, when a PR is merged. I'd definitely find that useful - I'd use it to
- clean up remote branches
- reap now-unnecessary cloud resources to save costs
at the least.
Yep, not only on PR merge, but PR close (that is, when merged or discarded)
We'd use this too. Currently we make this happen by having another microservice receive Github webhooks, watch out for PR merges, and then manually call a Buildkite pipeline to discard old review environments. I'd rather it be part of Buildkite directly, obviously.
This is something that would be useful for us as well. We are planning to implement this with a cloud function that listens for pull request events and triggers the pipeline API for close events, but it'd be nicer to have this built directly into Buildkite.
I'd like this feature for deleting branch preview environments. IS this still a live issue?
+1
Any update on this ? I am forced to use github actions to call the BK api to trigger an undeploy pipeline.
Yes please. Don't force me into the arms of GHA. :D
Just wondering how this is not a feature already?
As a workaround, we are using GitHub Actions to trigger a BuildKite pipeline to clean up our cloud infrastructure that is deployed using BuildKite? Seems a bit of a backwards approach to cleaning up on a closed
event. Is there anything on the roadmap for this?