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

Regression: Initial stage run does not show graph

    XMLWordPrintable

Details

    • indian, arctic, tasman

    Description

      I saw something strange while testing blue ocean on b10

      Here's the pipeline:

      node {
        checkout scm
        stage ('Build1') {
            sh 'ping -c 10 www.apple.com'
        }
        stage ('Build2') {
            sh 'ping -c 10 www.apple.com'
        }
        stage ('Build3') {
            sh 'ping -c 10 www.apple.com'
        }
        stage ('Build4') {
            sh 'ping -c 10 www.apple.com'
        }
        stage ('Build5') {
            sh 'ping -c 10 www.apple.com'
        }
      }
      

      This is what the initial build looks like:

      Ideally we should have a regression test for this problem.

      Attachments

        Activity

          michaelneale Michael Neale added a comment -

          Thanks tscherler, I think perhaps tfennelly might be able to tackle this later this week?

          Vivek is out for thanksgiving - tfennelly able to take a look?

          michaelneale Michael Neale added a comment - Thanks tscherler , I think perhaps tfennelly might be able to tackle this later this week? Vivek is out for thanksgiving - tfennelly able to take a look?
          michaelneale Michael Neale added a comment - - edited

          I can't consistently reproduce this - can anyone else?

          EDIT: got it, needs to have something happen before a stage opens :

          node {
            sh 'ping -c 10 www.apple.com'
            stage ('Build1') {
                sh 'ping -c 10 www.apple.com'
            }
            stage ('Build2') {
                sh 'ping -c 10 www.apple.com'
            }
            stage ('Build3') {
                sh 'ping -c 10 www.apple.com'
            }
            stage ('Build4') {
                sh 'ping -c 10 www.apple.com'
            }
            stage ('Build5') {
                sh 'ping -c 10 www.apple.com'
            }
          }
          

          checkout scm will also do that - is timing sensitive.

          michaelneale Michael Neale added a comment - - edited I can't consistently reproduce this - can anyone else? EDIT: got it, needs to have something happen before a stage opens : node { sh 'ping -c 10 www.apple.com' stage ('Build1') { sh 'ping -c 10 www.apple.com' } stage ('Build2') { sh 'ping -c 10 www.apple.com' } stage ('Build3') { sh 'ping -c 10 www.apple.com' } stage ('Build4') { sh 'ping -c 10 www.apple.com' } stage ('Build5') { sh 'ping -c 10 www.apple.com' } } checkout scm will also do that - is timing sensitive.
          jamesdumay James Dumay added a comment -

          Nice one michaelneale. Not sure why my example didn't work... scratches head

          jamesdumay James Dumay added a comment - Nice one michaelneale . Not sure why my example didn't work... scratches head
          michaelneale Michael Neale added a comment -

          I tried and this seems too timing sensitive to be able to pick up with the ATH

          michaelneale Michael Neale added a comment - I tried and this seems too timing sensitive to be able to pick up with the ATH

          michaelneale yeah you are right I was able to reproduce it only once before. I will try your scripts now.

          tscherler Thorsten Scherler added a comment - michaelneale yeah you are right I was able to reproduce it only once before. I will try your scripts now.

          People

            tscherler Thorsten Scherler
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: