• 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 made changes -
          Attachment New: Screenshot_20170511_125306.png [ 37731 ]
          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: