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

Tables to divs issue with Build Name and Description Setter plugin

XMLWordPrintable

      The https://plugins.jenkins.io/build-name-setter/ appears to have not been updated to be compatible with https://www.jenkins.io/doc/developer/views/table-to-div-migration/

      I found this while diagnosing a client reported issue after they upgraded past version 2.277.3.

      Previous behaviour (Jenkins 2.263.4 LTS)

      If you start a fresh Jenkins 2.263.4 LTS instance with 

      • https://get.jenkins.io/war-stable/2.263.4/jenkins.war
      • "Install suggested plugins" during the setup wizard
      • install https://plugins.jenkins.io/build-name-setter/ version 2.1.0 (the newest compatible plugin version for this core version)
      • Create a Pipeline job with the following content:
      • pipeline {
            agent any
            stages {
                stage('Hello') {
                    steps {
                        echo 'Hello World'
                        buildName 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
                    }
                }
            }
        }
      • You will see the (expected) wrapping of this long string of text:

      New behaviour (Jenkins 2.277.3 LTS)

      If you start a fresh Jenkins 2.277.3 LTS instance with 

      • https://get.jenkins.io/war-stable/2.277.3/jenkins.war
      • "Install suggested plugins" during the setup wizard
      • install https://plugins.jenkins.io/build-name-setter/ version 2.2.0 (the latest available version as of now)
      • Create a Pipeline job with the following content (same Pipeline code from 2.263.4):
      • pipeline {
            agent any
            stages {
                stage('Hello') {
                    steps {
                        echo 'Hello World'
                        buildName 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'
                    }
                }
            }
        }

        1. jenkins-2.332.3-example-image.png
          jenkins-2.332.3-example-image.png
          137 kB
        2. 2.263.4.plugins.txt
          2 kB
        3. 2_277_3.png
          2_277_3.png
          58 kB
        4. 2_263_4.png
          2_263_4.png
          61 kB

            dszczepanik Damian Szczepanik
            rkivisto Ray Kivisto
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: