You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-70139] booleanRadio uses non-unique ID (regression in 2.335) #18388
The implementation of our boolean radio button (see https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/form/booleanRadio.jelly) does use a generated ID. When you have a repeatable describable (e.g. quality gates in the warnings plugin, or code coverage plugin) then this ID will be duplicated for all instances, i.e. the button will be toggled automatically for all instances rather than for the selected one only. We need to provide a way to make this ID unique.
The implementation of our boolean radio button (see https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/form/booleanRadio.jelly) does use a generated ID. When you have a repeatable describable (e.g. quality gates in the warnings plugin, or code coverage plugin) then this ID will be duplicated for all instances, i.e. the button will be toggled automatically for all instances rather than for the selected one only. We need to provide a way to make this ID unique.
After looking into it a little bit deeper it appears, that the actual problem is the duplicate id that is generated by the booleanRadio. This affects the correct rendering and animation of the radio buttons. The name seems to be unique though. What I do not understand is, how this ID is composed for repeatable. It seems that the value is cached.
After looking into it a little bit deeper it appears, that the actual problem is the duplicate id that is generated by the booleanRadio. This affects the correct rendering and animation of the radio buttons. The name seems to be unique though. What I do not understand is, how this ID is composed for repeatable. It seems that the value is cached.
This actually causes issues with our builds that have repeatable sections that have radio button options, like the following:
The second 'Specific credentials' radio button should have been retained as being selected in this screenshot, but it was not, so if you go to save the job customization it doesn't register as being selected, even though if you now manually click on that radio button it will show the underlying data.
This happened for another job that had multiple Invoke Gradle Script steps in a row where it didn't keep the radio button selection for 'Use Gradle Wrapper' on both steps, causing a vague File Not Found error for gradle.
Rolling back to 2.390 fixed the issue.
This actually causes issues with our builds that have repeatable sections that have radio button options, like the following:
The second 'Specific credentials' radio button should have been retained as being selected in this screenshot, but it was not, so if you go to save the job customization it doesn't register as being selected, even though if you now manually click on that radio button it will show the underlying data.
This happened for another job that had multiple Invoke Gradle Script steps in a row where it didn't keep the radio button selection for 'Use Gradle Wrapper' on both steps, causing a vague File Not Found error for gradle.
This is a blocker for me as there are many jobs that have radio button in them and selecting one radio button is unselecting the other radio button of a different section
I have attached the video for the same, this issue was not there before,
This is a blocker for me as there are many jobs that have radio button in them and selecting one radio button is unselecting the other radio button of a different section
I have attached the video for the same, this issue was not there before,
sushanto the plugin you are referring to does not use the booleanRadio, it uses a radio button without an ID, maybe this is the problem. I think this plugin needs to be updated:
Can you please file a new issue in Jira and link JENKINS-70139 as cause?
sushanto the plugin you are referring to does not use the booleanRadio, it uses a radio button without an ID, maybe this is the problem. I think this plugin needs to be updated:
I am not totally sure, but I think these are the corresponding pieces of code in other plugins where I was running into issues with the latest Jenkins with the radio buttons:
Credentials Binding Multi Username Password selection
I am not totally sure, but I think these are the corresponding pieces of code in other plugins where I was running into issues with the latest Jenkins with the radio buttons:
Credentials Binding Multi Username Password selection
Activity
jenkins-infra-bot commentedon Nov 23, 2022
Remote links associated with this issue:
jenkins-infra-bot commentedon Nov 30, 2022
Raw content of original comment:
After looking into it a little bit deeper it appears, that the actual problem is the duplicate id that is generated by the booleanRadio. This affects the correct rendering and animation of the radio buttons. The name seems to be unique though. What I do not understand is, how this ID is composed for repeatable. It seems that the value is cached.
jenkins-infra-bot commentedon Feb 28, 2023
tbeukhof:
Raw content of original comment:
This actually causes issues with our builds that have repeatable sections that have radio button options, like the following:
The second 'Specific credentials' radio button should have been retained as being selected in this screenshot, but it was not, so if you go to save the job customization it doesn't register as being selected, even though if you now manually click on that radio button it will show the underlying data.
This happened for another job that had multiple Invoke Gradle Script steps in a row where it didn't keep the radio button selection for 'Use Gradle Wrapper' on both steps, causing a vague File Not Found error for gradle.
Rolling back to 2.390 fixed the issue.
jenkins-infra-bot commentedon Mar 2, 2023
sushanto:
Raw content of original comment:
This issue is present in Jenkins
Jenkins 2.392
This is a blocker for me as there are many jobs that have radio button in them and selecting one radio button is unselecting the other radio button of a different section
I have attached the video for the same, this issue was not there before,
Kindly please resolve this asap
jenkins-infra-bot commentedon Mar 2, 2023
Raw content of original comment:
sushanto Can you please add the concrete steps to reproduce so that we can add a UI test case that reflects your use case.
jenkins-infra-bot commentedon Mar 3, 2023
sushanto:
Raw content of original comment:
In any freestyle job, just add create/edit text file section (plugin to be installed) - plugin url - https://plugins.jenkins.io/text-file-operations/
add min two section, and try to select the overwrite file option in both the section
drulli FYI
jenkins-infra-bot commentedon Mar 3, 2023
Raw content of original comment:
sushanto the plugin you are referring to does not use the booleanRadio, it uses a radio button without an ID, maybe this is the problem. I think this plugin needs to be updated:
https://github.com/jenkinsci/text-file-operations-plugin/blob/master/src/main/resources/com/etas/jenkins/plugins/CreateTextFile/CreateFileBuilder/config.jelly#L14
Can you please file a new issue in Jira and link
JENKINS-70139as cause?jenkins-infra-bot commentedon Mar 3, 2023
Raw content of original comment:
tbeukhof Can you confirm this as well for your plugin configurations?
jenkins-infra-bot commentedon Mar 6, 2023
tbeukhof:
Raw content of original comment:
I am not totally sure, but I think these are the corresponding pieces of code in other plugins where I was running into issues with the latest Jenkins with the radio buttons:
Credentials Binding Multi Username Password selection
https://github.com/jenkinsci/credentials-binding-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/credentialsbinding/impl/BindingStep/config.jelly#L34
Gradle plugin step Gradle executable selection
https://github.com/jenkinsci/gradle-plugin/blob/master/src/main/resources/hudson/plugins/gradle/Gradle/config.jelly#L5
jenkins-infra-bot commentedon Mar 6, 2023
Raw content of original comment:
Ok, the gradle plugin uses a radioBlock, this one also does not use an ID. It seems that the fix in #7631 needs to be improved.
Can you please file a new issue about that problem, as the new problem is about all other radio buttons?
jenkins-infra-bot commentedon Mar 6, 2023
tbeukhof:
Raw content of original comment:
Thank you for the guidance, Ulli. I created
JENKINS-70739.jenkins-infra-bot commentedon Apr 8, 2023
Raw content of original comment:
I confirmed that the fix from Jesse Glick resolves both the credentials binding issue and the text file operations issue (as noted by sushanto)
jenkins-infra-bot commentedon Apr 9, 2023
Raw content of original comment:
The fix also resolves the issue in the warnings plugin!
jenkins-infra-bot commentedon Nov 24, 2025
[Original
relates_tofrom Jira: JENKINS-70739]jenkins-infra-bot commentedon Nov 24, 2025
[Original
relates_tofrom Jira: JENKINS-70988]jenkins-infra-bot commentedon Nov 24, 2025
[Original
relates_tofrom Jira: JENKINS-70989]