If you are using Multibranch, you may be interested in:
https://github.com/jenkinsci/basic-branch-build-strategies-plugin
Checkout the documentation:
This extension plugin will enable things like:
* Not rebuilding PRs if only the target branch changed
* Automatically building tags that were "created" within a specific time window
But anyway!
Enjoy (once the release is synced)