gitlab-plugin
gitlab-plugin copied to clipboard
Creating a tag with the active branch name filter does not work on pipeline
Jenkins and plugins versions report
Environment
Jenkins: 2.387.1
OS: Linux - 5.15.98-0-lts
Java: 11.0.18 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
ant:481.v7b_09e538fcca
antisamy-markup-formatter:159.v25b_c67cd35fb_
apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5
authentication-tokens:1.4
blueocean:1.27.2
blueocean-bitbucket-pipeline:1.27.2
blueocean-commons:1.27.2
blueocean-config:1.27.2
blueocean-core-js:1.27.2
blueocean-dashboard:1.27.2
blueocean-display-url:2.4.1
blueocean-events:1.27.2
blueocean-git-pipeline:1.27.2
blueocean-github-pipeline:1.27.2
blueocean-i18n:1.27.2
blueocean-jwt:1.27.2
blueocean-personalization:1.27.2
blueocean-pipeline-api-impl:1.27.2
blueocean-pipeline-editor:1.27.2
blueocean-pipeline-scm-api:1.27.2
blueocean-rest:1.27.2
blueocean-rest-impl:1.27.2
blueocean-web:1.27.2
bootstrap5-api:5.2.2-1
bouncycastle-api:2.27
branch-api:2.1071.v1a_188a_562481
build-timeout:1.28
caffeine-api:2.9.3-65.v6a_47d0f4d1fe
checks-api:1.8.1
cloudbees-bitbucket-branch-source:796.v6cb_1559e1673
cloudbees-folder:6.815.v0dd5a_cb_40e0e
command-launcher:90.v669d7ccb_7c31
commons-lang3-api:3.12.0-36.vd97de6465d5b_
commons-text-api:1.10.0-36.vc008c8fcda_7b_
credentials:1214.v1de940103927
credentials-binding:523.vd859a_4b_122e6
display-url-api:2.3.7
docker-build-step:2.9
docker-commons:419.v8e3cd84ef49c
docker-java-api:3.2.13-68.va_875df25a_b_45
docker-plugin:1.3.0
docker-workflow:563.vd5d2e5c4007f
durable-task:504.vb10d1ae5ba2f
echarts-api:5.4.0-2
email-ext:2.94
favorite:2.4.1
font-awesome-api:6.3.0-1
git:5.0.0
git-client:4.1.0
git-tag-message:1.7.1
github:1.37.0
github-api:1.303-417.ve35d9dd78549
github-branch-source:1701.v00cc8184df93
gitlab-api:5.0.1-78.v47a_45b_9f78b_7
gitlab-logo:1.1.0
gitlab-merge-request-jenkins:2.0.0
gitlab-plugin:1.7.8
gradle:2.3.1
What Operating System are you using (both controller, and any agents involved in the problem)?
Debian 11 - Linux
Reproduction steps
1- Create a pipeline jenkins job using Jenkins file 2- Activate the filtering by branch name "Filter branches by name" and put for example "main". 3- Create a TAG for the "main" branch in gitlab WEB or in the repository via CLI and upload it.
Expected Results
Jenkins executes the task defined in the "stages".
Actual Results
Jenkins ignores the event
Anything else?
If "Allow all branches to trigger this job" is selected, the task is triggered correctly when creating a TAG for the "main" branch in gitlab WEB or in the repository via CLI and uploading it.
I don't know if this is the expected behavior, but to avoid running the task in branches on multiple development branches I'm going to have to use "Filter branches by regex" and call the branches as I would call my tags. I don't like this because the tags (releases) should be chargeable.
Thank you very much