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

Ability to filter seperately on each post variable extracted

Open ericklindemannetcom opened this issue 2 years ago • 1 comments

I have a few extracted variables I am trying to filter on. Problem is I am unable to filter per variable.

For example, I may want to filter on commitid is not empty/null and that branch does not start with a particular letter or string and doesn't contain some strings.

Currently it appears that test expression applies evaluates all variables. So if I have an empty commit but the branch passes filter, the build will still trigger.

Unless I am overlooking a regex expression that would filter separately per variable.

If this is currently not possible, can this be added as an enhancement at some point?

Version I am using: 1.72

I will also try to upgrade to latest 1.76

ericklindemannetcom avatar Sep 02 '21 04:09 ericklindemannetcom

Can you supply some examples of json where you want to trigger and not trigger?

Like these: https://github.com/jenkinsci/generic-webhook-trigger-plugin/tree/master/src/test/resources/org/jenkinsci/plugins/gwt/bdd

tomasbjerre avatar Sep 02 '21 05:09 tomasbjerre