question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trigger builds on tag discovery

See original GitHub issue

Your checklist for this issue

  • Jenkins version: 2.267

  • Plugin version: 2.9.7

  • Bitbucket cloud

  • Bitbucket server and version

Description

Hey folks,

We started using this plugin extensively, (had some issues with creating multibranch organization scanners that discover tags by default, via configuration as code), but it seems there is no way for the discovered tags to be built automatically.

I was searching related issues here, but only found comments explaining that it is not currently implemented.

Could I request this feature to be added? I was trying to implement this feature myself and create a pull request, but I got lost in the code and don’t know what should be added that triggers the build. (Didn’t really work with Jenkins and its ecosystem before.)

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eoc-rosscommented, Mar 10, 2021

So, I gave it another shot and finally managed to make it work. After installing basic-branch-build-strategies plugin, a new section is available in the Team/Project job config. You have to add all 3 strategies:

  • Change requests
  • Regular branches
  • Tags

image

I’m not sure what happened yesterday, but I might have been playing with plugins too much. This time I tried with a fresh jenkins install and everything worked as expected.

Regards

0reactions
ryancurrahcommented, Mar 22, 2022

Looks like that plugin will not work as intended.

For the tags not to be discovered or to be skipped in the first place the “Discover Tags” behavior of the Github Branch Source plugin needs to be extended or an extra plugin developed that adds a tag filter behavior.

https://issues.jenkins.io/browse/JENKINS-64810

Read more comments on GitHub >

github_iconTop Results From Across the Web

trigger jenkins build on tag creation with multibranch pipeline
The pipeline does discover tags that I push which match the filter. And if I click on one to run a build for...
Read more >
[JENKINS-47496] No automatic builds for tags
This article clearly states that if we add "Discover tags" to multibranch pipeline, Jenkins will trigger builds when tags are pushed into repo....
Read more >
No automatic builds for tags - Jenkins Jira
This article clearly states that if we add "Discover tags" to multibranch pipeline, Jenkins will trigger builds when tags are pushed into repo....
Read more >
Declarative pipeline "when" tag is pushed - Google Groups
When used with the Branch API Plugin, tags will show up as a new category. The default configuration of Branch API will not...
Read more >
How to trigger Jenkins when new Tags are created
We should enable the Poll SCM build trigger in our pipeline job setting and enter a Schedule. This way, Jenkins will be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found