Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
radhikavelaga-aisera opened this issue Jun 27, 2024 · 2 comments

Comments

@radhikavelaga-aisera
Copy link

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

@tomasbjerre
Copy link
Contributor

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

@radhikavelaga-aisera
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants