Using multibranch pipelines with webhooks.
When I delete a branch my jenkins projects immediately update and prune the branch.
This is great but could I trigger a build of master branch when another branch is pruned?
Im asking for two things i guess:
- Is it possible to trigger a build when a delete branch webhook is received?
- Is it possible to trigger only a build of a specific branch?
I have some external cleanup I want to do when a branch it deleted. I could avoid cron or external scripts and just code this logic into the pipeline itself (assuming what I want is possible).