How to detect a merge and perform a cleanup action with multibranch pipelines

17 views
Skip to first unread message

red 888

unread,
Oct 19, 2017, 5:53:24 PM10/19/17
to Jenkins Users

This is what I have now:

1. Create a feature branch with jenkinsfile in it
2. Commit to your new feature branch and the pipeline kicks off
3. The pipeline deploys the app to a new VM/environment/container/whatever
4. The environment/VM persists after the deploy so you can touch/test it physically

Now what I want to happen is when the branch is merged and deleted jenkins cleans up and deletes the VM it created for that branch.

Are there triggers for merge/deletion of a branch?

Reply all
Reply to author
Forward
0 new messages