jenkinsci / jenkinsci/generic-webhook-trigger-plugin

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

Open
#315 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
427
Forks
169
Avg merge
23m
Merged PRs (30d)
1

Description

### Explain your issue

I am trying to setup a build job with [generic-webhook-trigger-plugin](https://github.com/jenkinsci/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](https://github.com/jenkinsci/generic-webhook-trigger-plugin/assets/121125520/5886e495-7403-418f-b76b-502956a6e5e6)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.