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

"Post content parameters" radio button not selectable for multiple variables

Open packar3k opened this issue 3 years ago • 2 comments

Hi, Met with the following issue today!

Jenkins version: 2.346.2 Plugin version: 1.84

When creating new jobs with multiple "Post content parameters" the radio buttons to select JSONPath/XPath are not selectable except for the first variable.

It's been working fine for me, maybe the problem happened after my recent Jenkins version update to 2.346.2. In all the old jobs the selection still works.

As a temporary workaround, I directly adjusted the job config and added <expressionType>JSONPath</expressionType> After that, the selection of the buttons is working again. Screenshot 2022-08-10 at 15 11 51 Thanks in advance!

packar3k avatar Aug 10 '22 13:08 packar3k

I can confirm this.

I think it is a problem in Jenkins, not in the plugin. The plugin has little code to handle those radio buttons: https://github.com/jenkinsci/generic-webhook-trigger-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/gwt/GenericVariable/config.jelly#L7

tomasbjerre avatar Aug 20 '22 05:08 tomasbjerre

Ok, thanks for the response.

packar3k avatar Aug 22 '22 19:08 packar3k

I think it can be caused by this Jenkins regression: https://issues.jenkins.io/browse/JENKINS-70139

Ruruthia avatar Jan 02 '23 15:01 Ruruthia

packar3k Could you please mention the steps on how/where you adjusted the Job config?

timjar3 avatar Jan 03 '23 21:01 timjar3

@timjar3 If you have access to the Jenkins job config on the Jenkins server, locate the job config and then you can manually edit the job config xml --> find the generic hook config --> modify the expression Type

packar3k avatar Jan 06 '23 09:01 packar3k

As a workaround, Just go ahead and click the radio button you like, and save the config, then navigate out and backto the page and you would see your radio buttons selected. it is just a Jenkins glitch imho

SnoCold avatar Feb 15 '23 10:02 SnoCold