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

Show full log in case of no steps and no stages for a failed run

    XMLWordPrintable

Details

    • Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 1

    Description

      This one should almost be obvious from the description if someone has used blue ocean. 

      It is possible to get a run that fails very early on, but there are no reasonable flownodes, thus no steps, no stages, and useless blue ocean results screen. 

      In this case it should just show the full log (or the last N lines) vs failing the user. 

       

      One way to reproduce a subset of this would be to use a pipeline like the following. When clicking on a branch, it says "no steps" - this should fall back to showing the full log in the error case. 

       

      In the case where there is just one stage and in error but no steps - same applies. When there are no stages and in error - same applies. show log. 
      node {
      def hello_message = "Hello" stage('Fake1') {
      parallel firstBranch: {
      sh "echo ${helo_message}" }, secondBranch: {
      sh "echo ${hello_message}" }
      }
      }

      Attachments

        Issue Links

          Activity

            michaelneale Michael Neale added a comment -

            alobato it could be good if you could add some color here, perhaps with an example if possible, or a screen shot of the worst cases as you see them? 

            michaelneale Michael Neale added a comment - alobato it could be good if you could add some color here, perhaps with an example if possible, or a screen shot of the worst cases as you see them? 
            michaelneale Michael Neale added a comment -

            this may be a non trivial amount of work - Ivan to investigate

            michaelneale Michael Neale added a comment - this may be a non trivial amount of work - Ivan to investigate

            Thanks: this is a really awesome feature

            reinholdfuereder Reinhold Füreder added a comment - Thanks: this is a really awesome feature
            michaelneale Michael Neale added a comment -

            reinholdfuereder nice! has bugged me for a while. Did you get to try it in the new version yet? 

            michaelneale Michael Neale added a comment - reinholdfuereder nice! has bugged me for a while. Did you get to try it in the new version yet? 

            Oh yes, I upgraded yesterday afternoon to Blue Ocean 1.5.0 and this feature worked like a charm

            reinholdfuereder Reinhold Füreder added a comment - Oh yes, I upgraded yesterday afternoon to Blue Ocean 1.5.0 and this feature worked like a charm
            michaelneale Michael Neale added a comment -

            reinholdfuereder outstanding! That is great, it is a tricky one to nail down. 

             

            kudos to nicu for this!

            michaelneale Michael Neale added a comment - reinholdfuereder outstanding! That is great, it is a tricky one to nail down.    kudos to nicu for this!
            nicu Nicolae Pascu added a comment -

            I'm glad I could help, thanks for the feedback

            nicu Nicolae Pascu added a comment - I'm glad I could help, thanks for the feedback

            People

              nicu Nicolae Pascu
              michaelneale Michael Neale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: