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

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

      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}" }
      }
      }

          [JENKINS-48074] Show full log in case of no steps and no stages for a failed run

          Michael Neale created issue -
          Michael Neale made changes -
          Epic Link New: JENKINS-35761 [ 171656 ]
          Michael Neale made changes -
          Assignee New: Ivan Meredith [ imeredith ]
          Michael Neale made changes -
          Sprint Original: Blue Ocean 1.4 - beta 4 [ 441 ] New: Blue Ocean 1.4 - beta 3 [ 416 ]
          James Dumay made changes -
          Sprint Original: Blue Ocean 1.4 - beta 3 [ 416 ] New: Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 5 [ 416, 451 ]
          Michael Neale made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Michael Neale made changes -
          Description Original: 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. 
          New: 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}" }
              }
          }
          Nicolae Pascu made changes -
          Assignee Original: Ivan Meredith [ imeredith ] New: Nicolae Pascu [ nicu ]
          Nicolae Pascu made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Nicolae Pascu made changes -
          Rank New: Ranked higher
          Vivek Pandey made changes -
          Sprint Original: Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 5 [ 416, 451 ] New: Blue Ocean 1.4 - beta 3, Blue Ocean 1.5 - beta 1 [ 416, 456 ]
          Vivek Pandey made changes -
          Rank New: Ranked higher

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

              Created:
              Updated:
              Resolved: