There is a job in jenkins that is triggered by a webhook from github. I want the build steps to be triggered by matching the twig regex. It will not work to add a trigger to the expression generic webhook, because some steps must be triggered by the regular expression condition, and others by the match condition of the main branch. Can you please tell me how to set the condition for the regular expression? (Regular - refs/heads/release/\d+.\d+) For example:
when {
environment(name: "ref", value: "refs\\/heads\\/release\\/\\d+\\.\\d+")
}
But it doesn't worked