Jenkins Multibranch Pipeline with Git Tag Discovery
Be default Jenkins multibranch pipelines with git won't discover and build tags.
Following on from R Tyler Croy's post about pipelines with git tags.
Here's how you generate a job like that in JobDSL.
The key is that you can't use the obvious
branchSources / git API. It's a nice shortcut but it doesn't have a
branchSources / branchSource / source / git, however, does!
gitTagDiscovery() // be careful you don't create a build storm!
includes('my_branch1 my_branches* my_tags* )