Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not A Defect
-
None
-
Jenkins 2.73.2, Git Plugin 3.6.0, Pipeline: Multibranch 2.16
Description
After upgrading to the Git Plugin 3.6.0 I activated the "Discover Tags" option in a Multibranch Pipeline Job. The tag is also discovered as expected, but no build is triggered.
Checking tags... Checking tag PNR-12345 ‘Jenkinsfile’ found Met criteria Changes detected: PNR-12345 (null → d56c6578f5f04403f4bd64bf2647f3dd0f36e826) No automatic builds for PNR-12345 Processed 1 tags
I expected that a new build is triggered, when a new tag is found. How to achieve this?
Attachments
Issue Links
- is related to
-
JENKINS-53432 Unable to automatically discover and build git tags with Jenkins multibranch pipelines and the Git Plugin
-
- Open
-
-
JENKINS-58477 Automatic builds for tags
-
- Fixed but Unreleased
-
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | branch-api-plugin [ 18621 ] | |
Component/s | pipeline [ 21692 ] |
Resolution | Not A Defect [ 7 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Attachment | build-tags.gif [ 43729 ] |
Attachment | Screen Shot 2018-08-14 at 00.41.53.png [ 43730 ] |
Link | This issue is related to JENKINS-53432 [ JENKINS-53432 ] |
Description |
After upgrading to the Git Plugin 3.6.0 I activated the "Discover Tags" option in a Multibranch Pipeline Job. The tag is also discovered as expected, but no build is triggered. {code:java} Checking tags... Checking tag PNR-12345 ‘Jenkinsfile’ found Met criteria Changes detected: PNR-12345 (null → d56c6578f5f04403f4bd64bf2647f3dd0f36e826) No automatic builds for PNR-12345 Processed 1 tags {code} I expected that a new build is triggered, when a new tag is found. How to achieve this? |
After upgrading to the Git Plugin 3.6.0 I activated the "Discover Tags" option in a Multibranch Pipeline Job. The tag is also discovered as expected, but no build is triggered. {code:java} Checking tags... Checking tag PNR-12345 ‘Jenkinsfile’ found Met criteria Changes detected: PNR-12345 (null → d56c6578f5f04403f4bd64bf2647f3dd0f36e826) No automatic builds for PNR-12345 Processed 1 tags {code} I expected that a new build is triggered, when a new tag is found. How to achieve this? |
Link |
This issue is related to |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Comment | [ It is baffling to me how this basic functionality is not part of Jenkins. The "build storm" issue could easily be avoided. Even the recommended plugin has options to filter tags based on age, but you could even ignore all tags that were created before the feature was enabled in an installation. Lucky we have the "El Oyente" (yes, that's the actual name) pipeline trigger that runs builds based on XMPP pub/sub events. But no builds triggered by tags because that is somehow an unsolvable problem for Jenkins, unlike any CI in existence. ] |
Tags are not built by default (because otherwise you could have a build storm when checking out a repository) and worse, the order tags will be built in is unpredictable... and you might have a Jenkinsfile that deploys to production when a tag is built.
There is an extension point in branch-api called BranchBuildStrategy which - if implemented - will allow deciding whether to build tags.
See https://github.com/jenkinsci/github-branch-source-plugin/pull/158#issuecomment-332773194 for starting point on how to create such an extension plugin... I believe there is some work on one at https://github.com/AngryBytes/jenkins-build-everything-strategy-plugin