generic-webhook-trigger-plugin icon indicating copy to clipboard operation
generic-webhook-trigger-plugin copied to clipboard

how to invoke global env variable (branch name) into Optional filter expression

Open radhikavelaga-aisera opened this issue 1 year ago • 3 comments

Explain your issue

I am trying to setup a build job with generic-webhook-trigger-plugin and i want to trigger build only if branch matches(branch name will change periodically and branch name will set at global level ). how to invoke global env variable (branch name) into Optional filter expression?

I am trying to like this but not working

Expression - ^(refs/heads/${env.release-branch-name})*?

Screenshot 2024-06-27 at 12 42 20 AM

radhikavelaga-aisera avatar Jun 27 '24 07:06 radhikavelaga-aisera

Can probably be solved by defining the configuration in a pipeline or job dsl, see readme.

tomasbjerre avatar Jun 27 '24 08:06 tomasbjerre

Can probably be solved by defining the configuration in a pipeline or job dsl, see readme.

Thank you for quick reply. If i take that path, i would need to change 50 jenkinsfile hence looking for an option in job config which is in my control.

radhikavelaga-aisera avatar Jun 27 '24 12:06 radhikavelaga-aisera

same question. :(

hoanbc avatar Mar 10 '25 16:03 hoanbc