I wish I could set up a job the following way:
task1: source code checkout
task2: mvn integration-test
task3: mvn deploy (only runs on main plan branch, not on auto detected branches.)
This is to be able to share build configuration, but not deploy feature-branch artifacts to our nexus repository.
I'd love to have two flags in all task types
-run on default plan branch only
-run on branches only