• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.53, Pipeline: Stage View Plugin v2.6

      This is a similar issue as #39445 but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

      def stagename(def proj_name){
          stage ("$proj_name"){
              node('master'){
                  build "$proj_name"
              }
          }
      }
      stagename('Freestyle-Test1-Echo')
      stagename('Freestyle-Test2-Echo-Cat')
      stagename('Freestyle-Test3-Echo')
      

      No issue is seen when using:

      node('master'){
          stage ('number 1'){
              build 'Freestyle-Test1-Echo'
              build 'Freestyle-Test2-Echo-Cat'
          }
          stage ('number 2'){
              build 'Freestyle-Test3-Echo'
          }
      }
      

      Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with deb http://pkg.jenkins.io/debian-stable binary/ on my apt sources.
      Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
      Issue was present before I updated jenkins and all plugins. Still persists after update.

          [JENKINS-42025] Pipeline stage view add whitespace

          Nuno Costa created issue -
          Nuno Costa made changes -
          Description Original: This is a similar issue as [this|https://issues.jenkins-ci.org/browse/JENKINS-39445] but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

          {noformat}
          def stagename(def proj_name){
              stage ("$proj_name"){
                  node('master'){
                      build "$proj_name"
                  }
              }
          }
          stagename('Freestyle-Test1-Echo')
          stagename('Freestyle-Test2-Echo-Cat')
          stagename('Freestyle-Test3-Echo')
          {noformat}

          No issue is seen when using:

          {noformat}
          node('master'){
              stage ('number 1'){
                  build 'Freestyle-Test1-Echo'
                  build 'Freestyle-Test2-Echo-Cat'
              }
              stage ('number 2'){
                  build 'Freestyle-Test3-Echo'
              }
          }
          {noformat}

          Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with *deb http://pkg.jenkins.io/debian-stable binary/* on my apt sources.
          Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
          Issue was present before I updated jenkins and all plugins. Still persists after update.
          New: This is a similar issue as #39445 but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

          {noformat}
          def stagename(def proj_name){
              stage ("$proj_name"){
                  node('master'){
                      build "$proj_name"
                  }
              }
          }
          stagename('Freestyle-Test1-Echo')
          stagename('Freestyle-Test2-Echo-Cat')
          stagename('Freestyle-Test3-Echo')
          {noformat}

          No issue is seen when using:

          {noformat}
          node('master'){
              stage ('number 1'){
                  build 'Freestyle-Test1-Echo'
                  build 'Freestyle-Test2-Echo-Cat'
              }
              stage ('number 2'){
                  build 'Freestyle-Test3-Echo'
              }
          }
          {noformat}

          Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with *deb http://pkg.jenkins.io/debian-stable binary/* on my apt sources.
          Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
          Issue was present before I updated jenkins and all plugins. Still persists after update.
          Nuno Costa made changes -
          Description Original: This is a similar issue as #39445 but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

          {noformat}
          def stagename(def proj_name){
              stage ("$proj_name"){
                  node('master'){
                      build "$proj_name"
                  }
              }
          }
          stagename('Freestyle-Test1-Echo')
          stagename('Freestyle-Test2-Echo-Cat')
          stagename('Freestyle-Test3-Echo')
          {noformat}

          No issue is seen when using:

          {noformat}
          node('master'){
              stage ('number 1'){
                  build 'Freestyle-Test1-Echo'
                  build 'Freestyle-Test2-Echo-Cat'
              }
              stage ('number 2'){
                  build 'Freestyle-Test3-Echo'
              }
          }
          {noformat}

          Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with *deb http://pkg.jenkins.io/debian-stable binary/* on my apt sources.
          Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
          Issue was present before I updated jenkins and all plugins. Still persists after update.
          New: This is a similar issue as https://issues.jenkins-ci.org/browse/JENKINS-39445 but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

          {noformat}
          def stagename(def proj_name){
              stage ("$proj_name"){
                  node('master'){
                      build "$proj_name"
                  }
              }
          }
          stagename('Freestyle-Test1-Echo')
          stagename('Freestyle-Test2-Echo-Cat')
          stagename('Freestyle-Test3-Echo')
          {noformat}

          No issue is seen when using:

          {noformat}
          node('master'){
              stage ('number 1'){
                  build 'Freestyle-Test1-Echo'
                  build 'Freestyle-Test2-Echo-Cat'
              }
              stage ('number 2'){
                  build 'Freestyle-Test3-Echo'
              }
          }
          {noformat}

          Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with *deb http://pkg.jenkins.io/debian-stable binary/* on my apt sources.
          Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
          Issue was present before I updated jenkins and all plugins. Still persists after update.
          Nuno Costa made changes -
          Description Original: This is a similar issue as https://issues.jenkins-ci.org/browse/JENKINS-39445 but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

          {noformat}
          def stagename(def proj_name){
              stage ("$proj_name"){
                  node('master'){
                      build "$proj_name"
                  }
              }
          }
          stagename('Freestyle-Test1-Echo')
          stagename('Freestyle-Test2-Echo-Cat')
          stagename('Freestyle-Test3-Echo')
          {noformat}

          No issue is seen when using:

          {noformat}
          node('master'){
              stage ('number 1'){
                  build 'Freestyle-Test1-Echo'
                  build 'Freestyle-Test2-Echo-Cat'
              }
              stage ('number 2'){
                  build 'Freestyle-Test3-Echo'
              }
          }
          {noformat}

          Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with *deb http://pkg.jenkins.io/debian-stable binary/* on my apt sources.
          Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
          Issue was present before I updated jenkins and all plugins. Still persists after update.
          New: This is a similar issue as [#39445|https://issues.jenkins-ci.org/browse/JENKINS-39445] but in my case it appears the the beginning of the stages (the space added also depends on number of stages as mentioned on the previous issue) and only when using this as mainscript:

          {noformat}
          def stagename(def proj_name){
              stage ("$proj_name"){
                  node('master'){
                      build "$proj_name"
                  }
              }
          }
          stagename('Freestyle-Test1-Echo')
          stagename('Freestyle-Test2-Echo-Cat')
          stagename('Freestyle-Test3-Echo')
          {noformat}

          No issue is seen when using:

          {noformat}
          node('master'){
              stage ('number 1'){
                  build 'Freestyle-Test1-Echo'
                  build 'Freestyle-Test2-Echo-Cat'
              }
              stage ('number 2'){
                  build 'Freestyle-Test3-Echo'
              }
          }
          {noformat}

          Using vagrant with hashicorp/precise64 as base image on Virtualbox, Jenkins LTS installed from package manager with *deb http://pkg.jenkins.io/debian-stable binary/* on my apt sources.
          Stage views from several jobs are also displaying this whitespace, even when the job wasn't run for some time.
          Issue was present before I updated jenkins and all plugins. Still persists after update.
          Nuno Costa made changes -
          Environment Original: Jenkins 2.32.2, Pipeline: Stage View Plugin v2.5 New: Jenkins 2.53, Pipeline: Stage View Plugin v2.6

          Nuno Costa added a comment -

          Still persists.

          Environment values were updated.

          Additional tests using only stagename() at a time and this were my results:

          stagename('111111111111-1') << Whitespace
          stagename('11111111111-1') << NO Whitespace
          stagename('abcdefghijklm-z') << Whitespace
          stagename('abcdefghijkl-z') << NO Whitespace
          stagename('ABCDEFGHIJKLMNOPQRSTUVWXY-Z') << NO Whitespace
          stagename('abcdefghijklmnopqrstuvwxy-z') << NO Whitespace
          stagename('a_bcdefghijklm-z') << Whitespace
          stagename('A_bcdefghijklm-z') << NO Whitespace
          stagename('Abcdefghijklm-z') << Whitespace
          stagename('Abcdefghijklm_-z') << NO Whitespace
          stagename('abcdefghijklm_-z') << Whitespace

           

           

          Nuno Costa added a comment - Still persists. Environment values were updated. Additional tests using only stagename() at a time and this were my results: stagename('111111111111-1') << Whitespace stagename('11111111111-1') << NO Whitespace stagename('abcdefghijklm-z') << Whitespace stagename('abcdefghijkl-z') << NO Whitespace stagename('ABCDEFGHIJKLMNOPQRSTUVWXY-Z') << NO Whitespace stagename('abcdefghijklmnopqrstuvwxy-z') << NO Whitespace stagename('a_bcdefghijklm-z') << Whitespace stagename('A_bcdefghijklm-z') << NO Whitespace stagename('Abcdefghijklm-z') << Whitespace stagename('Abcdefghijklm_-z') << NO Whitespace stagename('abcdefghijklm_-z') << Whitespace    
          Nuno Costa made changes -
          Attachment New: Screenshot_20170511_125306.png [ 37731 ]

          Nuno Costa added a comment -

          Also happening using Declarative pipeline. This stage is added automatically by the Declarative pipeline usage.

          Screenshot added.

          Nuno Costa added a comment - Also happening using Declarative pipeline. This stage is added automatically by the Declarative pipeline usage. Screenshot added.

          Nuno Costa added a comment -

          I have this issue on my main machine using Chromium and a newly installed Google Chrome. Tested both with Guest mode and I can see the whitespace. What is strange is that on a multibranch project, I have 2 branches with the issue and other 2 without.

          On Firefox, the whitespace is not seen.

          Main machine: Arch: FF 56.0, Chromium Version 61.0.3163.100 (Developer Build) (64-bit), Google Chrome Version 61.0.3163.100 (Official Build) (64-bit)

          Tested on a Kubuntu vm and I'm randomly seeing the whitespace on the affected branches.

          Kubuntu 17.04: FF 56.0, Chromium Version 61.0.3163.100 (Official Build) Built on Ubuntu, running on Ubuntu 17.04 (64-bit)

          On Fedora 25 and later updated to 26, I cannot replicate whitespace issue, on the affected branches.

          It starts to seem a issue with browser specific and possible local computer/browser profile issues.

          Nuno Costa added a comment - I have this issue on my main machine using Chromium and a newly installed Google Chrome. Tested both with Guest mode and I can see the whitespace. What is strange is that on a multibranch project, I have 2 branches with the issue and other 2 without. On Firefox, the whitespace is not seen. Main machine: Arch: FF 56.0, Chromium Version 61.0.3163.100 (Developer Build) (64-bit), Google Chrome Version 61.0.3163.100 (Official Build) (64-bit) Tested on a Kubuntu vm and I'm randomly seeing the whitespace on the affected branches. Kubuntu 17.04: FF 56.0, Chromium Version 61.0.3163.100 (Official Build) Built on Ubuntu, running on Ubuntu 17.04 (64-bit) On Fedora 25 and later updated to 26, I cannot replicate whitespace issue, on the affected branches. It starts to seem a issue with browser specific and possible local computer/browser profile issues.
          Mark Waite made changes -
          Assignee Original: Sam Van Oort [ svanoort ]

            Unassigned Unassigned
            ncosta Nuno Costa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: