-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Jenkins v2.401.2 LTS, Active Choices Plug-in v2.7
We are experiencing issues with parameters no longer appearing.
Fix was to downgrade the Active Choices Plug-in back to version 2.65.
Jenkins: 2.401.2 LTS
Active Choices Plug-in: 2.7
Pipeline code:
separator(name: "ENV_CHOICE", sectionHeader: "IAC Environment"), choice(choices: "\n${cmn.listToChoices(cmn.currentAllowedTargetEnvs())}", name: 'targetEnv', description: 'Environment to deploy updates'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'masterConfEnv', referencedParameters: 'targetEnv', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], script: "return []"], script: [classpath: [], sandbox: true, script: cmn.activeChoicesEnvsToMastersScript(cmn.currentAllowedTargetEnvs(),cmn.currentAllowedTargetEnvs(),'targetEnv',false,true) ] ] ],
Error:
Note: Unlike JENKINS-71706 we are not setting Jenkins CSP headers but we are using a Resource Root URL
- is caused by
-
JENKINS-71724 cascaded active choice Radio Boxes does not auto update
-
- Resolved
-
[JENKINS-71755] Not able to see parameters
Attachment | New: image-2023-08-03-09-48-10-799.png [ 60933 ] |
Description |
Original:
We are experiencing issues with parameters no longer appearing.
Fix was to downgrade the Active Choices Plug-in back to version 2.65. Jenkins: 2.401.2 LTS Active Choices Plug-in: 2.7 Pipeline code: {code:java} separator(name: "ENV_CHOICE", sectionHeader: "IAC Environment"), choice(choices: "\n${cmn.listToChoices(cmn.currentAllowedTargetEnvs())}", name: 'targetEnv', description: 'Environment to deploy updates'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'masterConfEnv', referencedParameters: 'targetEnv', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], script: "return []"], script: [classpath: [], sandbox: true, script: cmn.activeChoicesEnvsToMastersScript(cmn.currentAllowedTargetEnvs(),cmn.currentAllowedTargetEnvs(),'targetEnv',false,true) ] ] ],{code} Error: !image-2023-07-27-15-39-26-850.png! Note: Unlike |
New:
We are experiencing issues with parameters no longer appearing.
Fix was to downgrade the Active Choices Plug-in back to version 2.65. Jenkins: 2.401.2 LTS Active Choices Plug-in: 2.7 Pipeline code: {code:java} separator(name: "ENV_CHOICE", sectionHeader: "IAC Environment"), choice(choices: "\n${cmn.listToChoices(cmn.currentAllowedTargetEnvs())}", name: 'targetEnv', description: 'Environment to deploy updates'), [$class: 'CascadeChoiceParameter', choiceType: 'PT_SINGLE_SELECT', name: 'masterConfEnv', referencedParameters: 'targetEnv', script: [$class: 'GroovyScript', fallbackScript: [classpath: [], script: "return []"], script: [classpath: [], sandbox: true, script: cmn.activeChoicesEnvsToMastersScript(cmn.currentAllowedTargetEnvs(),cmn.currentAllowedTargetEnvs(),'targetEnv',false,true) ] ] ],{code} Error: !image-2023-08-03-09-48-10-799.png|width=285,height=262! Note: Unlike |
Link |
New:
This issue is caused by |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Link | New: This issue is related to JENKINS-73210 [ JENKINS-73210 ] |
Link | Original: This issue is related to JENKINS-73210 [ JENKINS-73210 ] |
This change broke it: https://github.com/jenkinsci/active-choices-plugin/commit/85324dab29bdee1f9dcfe1e25ec3971b67bde9a7
filterable property may be null so when plugin generates javascript it renders null as empty value. As result invalid javascript is generated.
Example of generated JS: UnoChoice.renderCascadeChoiceParameter('#choice-parameter-2485793811188384', , ...). ", ," is where boolean value supposed to be.