Jenkins setup:
Jenkins: 2.452.3
Java: 17.0.11 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
basic-branch-build-strategies:81.v05e333931c7d
Hi everyone,
I’m having a problem using the basic branch build strategies plugin. Basically tags are not discovered and built automatically while other strategies, like pull request, are. I’m using a multibranch pipeline connected to a Github repository.
I can see from the log that the tag creation event is sent.
Jul 17, 2024 2:08:56 PM FINE org.jenkinsci.plugins.github.webhook.GHEventHeader$PayloadHandler parse
Header X-GitHub-Event -> create
If I run the repository scan,the created tag is found but I would want to be discovered automatically.
In addition I have this messages on the log whenever I configure my job where the webhooks manager is trying to automatically configure webhooks.
Jul 17, 2024 2:17:35 PM INFO org.jenkinsci.plugins.github.webhook.WebhookManager$1 run
GitHub webhooks activated for job with [GitHubRepositoryName[host=github.com,username=username,repository=myrepo]] (events: [PULL_REQUEST, PUSH])
Where it seems that the CREATE event is ignored.
Anyway I did not configure Jenkins to automatically create webhooks, but this message could be helpful.
My configuration:
Github:
- “Create tag/branch” webhook checked in github
Jenkins - Discover Strategies:
- Discover branches: All Branches
- Discover Pull Request From origin: the current pull request revision
- Discover Tags
Jenkins - Property Strategy: All Branches get the same properties
- Suppress strategy: for matching branches suppress builds triggered by indexing (continue to honor webhooks)
Jenkins - Build Strategies
- Change Request
- Tags
Anyone had the same issue?
Thanks in advance