Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72949

In CascadeChoiceParameter, loading status happen. So, I cannot select items in parameter at all.

      Hello! I updated jenkins lts to 2.4402. and Active Choices Plug-in 2.8.3. 

       

      But, at Active Choices Plug-in 2.8.2, 
      CascadeChoiceParameter loading error happen.
       
      I made build parameter right that.
       
       

      choice(
          name: 'Test1',
          choices: ["A", "B"].join("\n"),
          description: 'for test1'
      ),
      choice(
          name: 'Test2',
          choices: ["C", "D"],
          description: 'for test2'
      ),
      [
          $class: 'CascadeChoiceParameter',
          name: 'LogOptions",
          choiceType: "PT_SINGLE_SELECT",
          referenceParameters: "Test1,Test2",
          script: [
              $class: 'GroovyScript",
              script: [
                  classpath: [],
                  sandbox: true,
                  script: """
      if (Test1.equals('A') && Test2.equals('C')) {
          return [
              'First:selected',
              'second'
          ]
      } else {
          return [
              'First:selected'
          ]
      }""".stripIndent()
                 ]
              ],
              description: 'Test'
          ]

       And I access at build parameter page, I cannot select parameter value of "LogOptions" parameter. only loading status showing. This parameter type is "CascadeChoiceParameter. I think CascadeChoiceParameter have bug. have you try to check this bug please?

       

      (at Active Choices Plug-in 2.8.3, same problem happen.
       

          [JENKINS-72949] In CascadeChoiceParameter, loading status happen. So, I cannot select items in parameter at all.

          Gooksung created issue -
          Gooksung made changes -
          Description Original: Hello! I updated jenkins lts to 2.4402. and Active Choices Plug-in 2.8.3. 

           

          But, at Active Choices Plug-in 2.8.2, 
          CascadeChoiceParameter loading error happen.
           
          I made build parameter right that.
           
           
          {code:java}
          choice(
              name: 'Test1',
              choices: ["A", "B"].join("\n"),
              description: 'for test1'
          ),
          choice(
              name: 'Test2',
              choices: ["C", "D"],
              description: 'for test2'
          ),
          [
              $class: 'CascadeChoiceParameter',
              name: 'LogOptions",
              choiceType: "PT_SINGLE_SELECT",
              referenceParameters: "Test1,Test2",
              script: [
                  $class: 'GroovyScript",
                  script: [
                      classpath: [],
                      sandbox: true,
                      script: """
          if (Test1.equals('A') && Test2.equals('C')) {
              return [
                  'First:selected',
                  'second'
              ]
          } else {
              return [
                  'First:selected'
              ]
          }""".stripIndent()
                     ]
                  ],
                  description: 'Test'
              ]{code}
           
           
          New: Hello! I updated jenkins lts to 2.4402. and Active Choices Plug-in 2.8.3. 

           

          But, at Active Choices Plug-in 2.8.2, 
          CascadeChoiceParameter loading error happen.
           
          I made build parameter right that.
           
           
          {code:java}
          choice(
              name: 'Test1',
              choices: ["A", "B"].join("\n"),
              description: 'for test1'
          ),
          choice(
              name: 'Test2',
              choices: ["C", "D"],
              description: 'for test2'
          ),
          [
              $class: 'CascadeChoiceParameter',
              name: 'LogOptions",
              choiceType: "PT_SINGLE_SELECT",
              referenceParameters: "Test1,Test2",
              script: [
                  $class: 'GroovyScript",
                  script: [
                      classpath: [],
                      sandbox: true,
                      script: """
          if (Test1.equals('A') && Test2.equals('C')) {
              return [
                  'First:selected',
                  'second'
              ]
          } else {
              return [
                  'First:selected'
              ]
          }""".stripIndent()
                     ]
                  ],
                  description: 'Test'
              ]{code}
           And I access at build parameter page, I cannot select parameter value of "LogOptions" parameter. only loading status showing. This parameter type is "CascadeChoiceParameter. I think CascadeChoiceParameter have bug. have you try to check this bug please?
           
          Gooksung made changes -
          Description Original: Hello! I updated jenkins lts to 2.4402. and Active Choices Plug-in 2.8.3. 

           

          But, at Active Choices Plug-in 2.8.2, 
          CascadeChoiceParameter loading error happen.
           
          I made build parameter right that.
           
           
          {code:java}
          choice(
              name: 'Test1',
              choices: ["A", "B"].join("\n"),
              description: 'for test1'
          ),
          choice(
              name: 'Test2',
              choices: ["C", "D"],
              description: 'for test2'
          ),
          [
              $class: 'CascadeChoiceParameter',
              name: 'LogOptions",
              choiceType: "PT_SINGLE_SELECT",
              referenceParameters: "Test1,Test2",
              script: [
                  $class: 'GroovyScript",
                  script: [
                      classpath: [],
                      sandbox: true,
                      script: """
          if (Test1.equals('A') && Test2.equals('C')) {
              return [
                  'First:selected',
                  'second'
              ]
          } else {
              return [
                  'First:selected'
              ]
          }""".stripIndent()
                     ]
                  ],
                  description: 'Test'
              ]{code}
           And I access at build parameter page, I cannot select parameter value of "LogOptions" parameter. only loading status showing. This parameter type is "CascadeChoiceParameter. I think CascadeChoiceParameter have bug. have you try to check this bug please?
           
          New: Hello! I updated jenkins lts to 2.4402. and Active Choices Plug-in 2.8.3. 

           

          But, at Active Choices Plug-in 2.8.2, 
          CascadeChoiceParameter loading error happen.
           
          I made build parameter right that.
           
           
          {code:java}
          choice(
              name: 'Test1',
              choices: ["A", "B"].join("\n"),
              description: 'for test1'
          ),
          choice(
              name: 'Test2',
              choices: ["C", "D"],
              description: 'for test2'
          ),
          [
              $class: 'CascadeChoiceParameter',
              name: 'LogOptions",
              choiceType: "PT_SINGLE_SELECT",
              referenceParameters: "Test1,Test2",
              script: [
                  $class: 'GroovyScript",
                  script: [
                      classpath: [],
                      sandbox: true,
                      script: """
          if (Test1.equals('A') && Test2.equals('C')) {
              return [
                  'First:selected',
                  'second'
              ]
          } else {
              return [
                  'First:selected'
              ]
          }""".stripIndent()
                     ]
                  ],
                  description: 'Test'
              ]{code}
           And I access at build parameter page, I cannot select parameter value of "LogOptions" parameter. only loading status showing. This parameter type is "CascadeChoiceParameter. I think CascadeChoiceParameter have bug. have you try to check this bug please?

           

          (at Active Choices Plug-in 2.8.3, same problem happen.
           
          Bruno P. Kinoshita made changes -
          Attachment New: screencast.gif [ 62429 ]
          Gooksung made changes -
          Attachment New: image-2024-04-08-11-15-03-275.png [ 62430 ]
          Gooksung made changes -
          Gooksung made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            kinow Bruno P. Kinoshita
            noah_kook Gooksung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: