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

Active Choices Reactive Reference Parameter of type Formatted Hidden HTML is not hidden when defined in pipeline

      I am using Pipeline script from SCM and define everything within including Parameters:

      properties([
        parameters([
          ...,
          [
            $class: 'DynamicReferenceParameter',
            choiceType: 'ET_FORMATTED_HIDDEN_HTML',
            name: 'Test',
            omitValueField: true,
            script: [
                $class: 'GroovyScript',
                script: [
                    classpath: [],
                    sandbox: true,
                    script: """
                        return '''whatever
                        '''
                    """
                ]
            ]
          ]
        ])
      ])
      
      pipeline {
      ...
      }

      If I run the pipeline the parameter is shown but then I save it in the config page it no longer shows up. I tried to look at config.xml in the jobs folder to see any difference but nothing.

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

              Created:
              Updated: