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

Plugin Rebuild - different view for build and rebuild for Jenkins 2.346.3

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rebuild-plugin
    • None

      After Jenkins upgrade from 2.263.3 to 2.346.3 plugin rebuild (1.34) has different view, order of HTML elements for build and rebuild action.
      I also tested previous version of the plugin: 1.33.1. The same result.

      pipeline {
          agent any
          parameters {
              booleanParam(name: 'FOO', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
              booleanParam(name: 'BAR', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
              booleanParam(name: 'LOREM', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
              booleanParam(name: 'IPSUM', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
          }
          stages {
              stage('Hello') {
                  steps {
                      script {
                          params.each {param ->
                              println "${param.key} -> ${param.value} "
                          }
                      }
                  }
              }
          }
      }

      Build

      Rebuild:

      Tested on Firefox 104.0.2 and Google Chrome 105.0.5195.102.

          [JENKINS-69559] Plugin Rebuild - different view for build and rebuild for Jenkins 2.346.3

          dracorp added a comment -

          Single item for build:

          and for rebuild:

          dracorp added a comment - Single item for build: and for rebuild:

          dracorp added a comment -

          I've checked the latest version of Jenkins, 2.361.1. It's same.

          dracorp added a comment - I've checked the latest version of Jenkins, 2.361.1. It's same.

          dracorp added a comment -

          I've tested plugin separator and I see strange behavior. Is changes layout.

              parameters {
                  separator name: 'FOO'
                  booleanParam(name: 'FOO', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
                  separator name: 'BAR'
                  booleanParam(name: 'BAR', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
                  separator name: "LOREM"
                  booleanParam(name: 'LOREM', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
                  separator name: 'IPSUM'
                  booleanParam(name: 'IPSUM', description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry.")
              } 

          After 2 builds any further build has proper layout/view:

          dracorp added a comment - I've tested plugin separator and I see strange behavior. Is changes layout.     parameters {         separator name: 'FOO'         booleanParam(name: 'FOO' , description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry." )         separator name: 'BAR'         booleanParam(name: 'BAR' , description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry." )         separator name: "LOREM"         booleanParam(name: 'LOREM' , description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry." )         separator name: 'IPSUM'         booleanParam(name: 'IPSUM' , description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry." )     } After 2 builds any further build has proper layout/view:

          gerald added a comment -

          I've changed the priority of this issue.

          This is very critical, because if you have selected the wrong tasks (depends on how destructive the tasks are which are above/below).

          Could you please tell me, when this issue will be fixed?

          gerald added a comment - I've changed the priority of this issue. This is very critical, because if you have selected the wrong tasks (depends on how destructive the tasks are which are above/below). Could you please tell me, when this issue will be fixed?

          dracorp added a comment -

          Almost the same situation for uno-choice:

           
             [
                          $class: 'DynamicReferenceParameter',
                          choiceType: 'ET_FORMATTED_HTML',
                          description: '',
                          name: 'KUBEENVS',
                          omitValueField: true,
                          referencedParameters: 'PROJECT_ENV,PROJECT_NAME',
                          script: [
                            $class: 'GroovyScript',
                            fallbackScript: [
                              classpath: [],
                              sandbox: true,
                              script: 'return null'
                            ],
                            script: [
                              classpath: [],
                              sandbox: true,
                              script: getDeployOptions([
                                "RETURN_OPTION": "KUBEENVS",
                                "AS_CODE": true
                              ])
                            ]
                          ]
                        ]
           

          which returns the html tag textarea:

          For rebuild option, it is:

          Is it a problem only with rebuild plugin?

          dracorp added a comment - Almost the same situation for uno-choice :   [ $class: 'DynamicReferenceParameter' , choiceType: 'ET_FORMATTED_HTML' , description: '', name: 'KUBEENVS' , omitValueField: true , referencedParameters: 'PROJECT_ENV,PROJECT_NAME' , script: [ $class: 'GroovyScript' , fallbackScript: [ classpath: [], sandbox: true , script: ' return null ' ], script: [ classpath: [], sandbox: true , script: getDeployOptions([ "RETURN_OPTION" : "KUBEENVS" , "AS_CODE" : true ]) ] ] ] which returns the html tag textarea: For rebuild option, it is: Is it a problem only with rebuild plugin?

            ragesh_nair ragesh_nair
            dracorp dracorp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: