Problem :
I created a multibranch pipeline with the discovery of tag and filter by name (regex). When the tag is auto discovered, the build is not getting triggered. I have to go and trigger the build manually in the job. I need the build to be triggered automatically when the tag is discovereed.
Note: The build is triggered manually if the pipeline is created with discovery of branch.
Jenkins setup - click to expand
Jenkins: 2.375.1 OS: Linux - 5.10.176+ Java: 11.0.18 - Eclipse Adoptium (OpenJDK 64-Bit Server VM) --- ace-editor:1.1 acunetix:1.2.14 ansicolor:1.0.2 ant:481.v7b_09e538fcca antisamy-markup-formatter:155.v795fb_8702324 apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5 appscan:1.1.0 authentication-tokens:1.4 aws-bucket-credentials:1.0.0 aws-codecommit-jobs:0.3.0 aws-credentials:191.vcb_f183ce58b_9 aws-java-sdk-cloudformation:1.12.447-382.vda_68e2007233 aws-java-sdk-codebuild:1.12.447-382.vda_68e2007233 aws-java-sdk-ec2:1.12.447-382.vda_68e2007233 aws-java-sdk-ecr:1.12.447-382.vda_68e2007233 aws-java-sdk-ecs:1.12.447-382.vda_68e2007233 aws-java-sdk-efs:1.12.447-382.vda_68e2007233 aws-java-sdk-elasticbeanstalk:1.12.447-382.vda_68e2007233 aws-java-sdk-iam:1.12.447-382.vda_68e2007233 aws-java-sdk-kinesis:1.12.447-382.vda_68e2007233 aws-java-sdk-logs:1.12.447-382.vda_68e2007233 aws-java-sdk-minimal:1.12.447-382.vda_68e2007233 aws-java-sdk-sns:1.12.447-382.vda_68e2007233 aws-java-sdk-sqs:1.12.447-382.vda_68e2007233 aws-java-sdk-ssm:1.12.447-382.vda_68e2007233 aws-java-sdk:1.12.447-382.vda_68e2007233 azure-ad:303.va_91ef20ee49f azure-commons:1.1.3 azure-container-registry-tasks:0.6.5 azure-credentials:242.vb_f9c4fa_6b_2b_6 azure-keyvault:161.va_60991a_5d3d2 azure-publishersettings-credentials:1.6 azure-sdk:118.v43f74dd9ca_dc azure-vm-agents:822.v3a18fc3d2de1 badge:1.9.1 bitbucket:223.vd12f2bca5430 blackduck-detect:7.0.0 bootstrap4-api:4.6.0-5 bootstrap5-api:5.2.1-3 bouncycastle-api:2.27 branch-api:2.1051.v9985666b_f6cc build-timeout:1.28 build-timestamp:1.0.3 caffeine-api:2.9.3-65.v6a_47d0f4d1fe checkmarx:2022.4.3 checks-api:1.8.1 chromedriver:1.2 cloud-stats:267.v577e3742c282 cloudbees-bitbucket-branch-source:791.vb_eea_a_476405b cloudbees-folder:6.800.v71307ca_b_986b command-launcher:90.v669d7ccb_7c31 commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-27.vb_fa_3896786a_7 config-file-provider:3.11.1 configuration-as-code:1569.vb_72405b_80249 credentials-binding:523.vd859a_4b_122e6 credentials:1214.v1de940103927 data-tables-api:1.12.1-4 display-url-api:2.3.7 docker-commons:1.21 docker-java-api:3.2.13-37.vf3411c9828b9 docker-plugin:1.2.10 docker-workflow:563.vd5d2e5c4007f durable-task:503.v57154d18d478 ec2:2.0.7 echarts-api:5.4.0-1 email-ext:2.93 emailext-template:1.5 extended-choice-parameter:359.v35dcfdd0c20d favorite:2.4.1 font-awesome-api:6.2.1-1 gcp-secrets-manager-credentials-provider:0.3.1 git-client:4.0.0 git-server:99.va_0826a_b_cdfa_d git:5.0.0 github-api:1.314-431.v78d72a_3fe4c3 github-branch-source:1703.vd5a_2b_29c6cdc github:1.37.2 google-compute-engine:4.3.13 google-container-registry-auth:0.3 google-kubernetes-engine:0.8.7 google-metadata-plugin:0.4 google-oauth-plugin:1.0.7 google-storage-plugin:1.5.7 gradle:2.2 greenballs:1.15.1 groovy-postbuild:2.5 groovy:453.vcdb_a_c5c99890 handlebars:3.0.8 handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953 http_request:1.16 instance-identity:142.v04572ca_5b_265 ionicons-api:31.v4757b_6987003 jackson2-api:2.15.2-350.v0c2f3f8fc595 jakarta-activation-api:2.0.1-2 jakarta-mail-api:2.0.1-2 javadoc:226.v71211feb_e7e9 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-8 jaxb:2.3.8-1 jdk-tool:63.v62d2fd4b_4793 jjwt-api:0.11.5-77.v646c772fddb_0 job-dsl:1.81 jquery3-api:3.6.1-2 jquery:1.12.4-1 jsch:0.1.55.61.va_e9ee26616e7 junit:1166.va_436e268e972 keeper-secrets-manager:1.0-79.v401df8db86b3 kubernetes-client-api:6.3.1-206.v76d3b_6b_14db_b kubernetes-credentials:0.10.0 kubernetes:3802.vb_b_600831fcb_3 ldap:659.v8ca_b_a_fe79fa_d lockable-resources:1106.vc9153f1a_ff25 mailer:438.v02c7f0a_12fa_4 matrix-auth:3.1.6 matrix-project:785.v06b_7f47b_c631 maven-plugin:3.20 mercurial:1260.vdfb_723cdcc81 metrics:4.2.13-420.vea_2f17932dd6 mina-sshd-api-common:2.9.2-50.va_0e1f42659a_a mina-sshd-api-core:2.9.2-50.va_0e1f42659a_a momentjs:1.1.1 node-iterator-api:49.v58a_8b_35f8363 nodejs:1.5.1 oauth-credentials:0.5 okhttp-api:4.11.0-145.vcb_8de402ef81 pam-auth:1.10 parameterized-scheduler:1.1 parameterized-trigger:2.45 pipeline-build-step:2.18 pipeline-github-lib:38.v445716ea_edda_ pipeline-graph-analysis:195.v5812d95a_a_2f9 pipeline-groovy-lib:629.vb_5627b_ee2104 pipeline-input-step:466.v6d0a_5df34f81 pipeline-milestone-step:101.vd572fef9d926 pipeline-model-api:2.2118.v31fd5b_9944b_5 pipeline-model-definition:2.2118.v31fd5b_9944b_5 pipeline-model-extensions:2.2118.v31fd5b_9944b_5 pipeline-rest-api:2.28 pipeline-stage-step:296.v5f6908f017a_5 pipeline-stage-tags-metadata:2.2118.v31fd5b_9944b_5 pipeline-stage-view:2.28 pipeline-utility-steps:2.14.0 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:2.20.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 powershell:2.0 prisma-cloud-iac-scan:1.3.5 publish-over-ssh:1.24 publish-over:0.22 purge-build-queue-plugin:88.v23b_97b_f2c7a_d qualys-api-security:2.2.2 qualys-cs:1.6.2.6 qualys-vm:1.2.1 qualys-was:2.0.10 resource-disposer:0.20 role-strategy:584.vf8e515397ecd saferestart:0.7 scm-api:631.v9143df5b_e4a_a script-security:1228.vd93135a_2fb_25 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 snyk-security-scanner:3.2.6 solarized-theme:0.1 sonar:2.15 ssh-agent:295.v9ca_a_1c7cc3a_a_ ssh-credentials:305.v8f4381501156 ssh-slaves:2.854.v7fd446b_337c9 ssh-steps:2.0.39.v831c5e6468b_c sshd:3.275.v9e17c10f2571 structs:324.va_f5d6774f3a_d swarm:3.39 testng-plugin:730.v4c5283037693 theme-manager:1.6 thinBackup:1.15 timestamper:1.21 token-macro:321.vd7cc1f2a_52c8 trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb workflow-aggregator:590.v6a_d052e5a_a_b_5 workflow-api:1200.v8005c684b_a_c6 workflow-basic-steps:994.vd57e3ca_46d24 workflow-cps-global-lib:609.vd95673f149b_b workflow-cps:3601.v9b_36a_d99e1cc workflow-durable-task-step:1217.v38306d8fa_b_5c workflow-job:1254.v3f64639b_11dd workflow-multibranch:716.vc692a_e52371b_ workflow-scm-step:400.v6b_89a_1317c9a_ workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:839.v35e2736cfd5c ws-cleanup:0.44