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?