[JIRA] (JENKINS-53295) error log should be collapsed by default too

7 views
Skip to first unread message

naresh.rayapati@gmail.com (JIRA)

unread,
Aug 28, 2018, 6:58:02 PM8/28/18
to jenkinsc...@googlegroups.com
Naresh Rayapati created an issue
 
Jenkins / New Feature JENKINS-53295
error log should be collapsed by default too
Issue Type: New Feature New Feature
Assignee: Unassigned
Attachments: JenkinsRetryWithPrompt.png
Components: blueocean-plugin
Created: 2018-08-28 22:57
Environment: Blue Ocean 1.8.2
Priority: Critical Critical
Reporter: Naresh Rayapati

We have implemented something called `retryWithPrompt` to avoid sudden failures on long running pipelines like environmental and other known issues. And also we have commands tailing long text before those actually fail, and retries on these steps doesn't guarantee that they would go through this time.

This is leaving multiple error steps on the same stage and being those very long text when we initially land on that stage the page is too hard to browse, it would be very nice if we can make this configurable or make it default similar to other steps, like in progress step.

Exampl e:

node('LINUX') {
    writeFile file: 'test.sh', text: "for i in {1..500}; do echo -n 'Loop \$i'; date ; sleep 1; done; exit 1"
    waitUntil {
        try {
            sh 'chmod +x test.sh'
            sh './test.sh'
            return true
        }
        catch(e) {
            println "Error: ${e}"
            println "StackTrace: ${e.getStackTrace()}"
            def userInput
            timeout(900) {
                userInput = input(id: 'userInput', message: "Retry? or Ignore", parameters: [[$class: 'ChoiceParameterDefinition', choices: "Retry\nIgnore\n", description: 'Select...', name: 'Select...']])
            }
            echo "User Selected: " + userInput.toString()
            return userInput == 'Ignore'
        }
    }
}

The above code is just an example and which will allow users to retry number of times and error steps are so many in there and those are too long, the default behavior is expanding those lines, which is causing a lot of confusion. appreciate your help.

Find the attached screenshots. for the sample output. Thanks again for the consideration.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

naresh.rayapati@gmail.com (JIRA)

unread,
Aug 28, 2018, 6:58:03 PM8/28/18
to jenkinsc...@googlegroups.com
Naresh Rayapati updated an issue
Change By: Naresh Rayapati
Attachment: JenkinsRetryWithPrompt.png

naresh.rayapati@gmail.com (JIRA)

unread,
Aug 28, 2018, 7:02:02 PM8/28/18
to jenkinsc...@googlegroups.com
Naresh Rayapati updated an issue
Change By: Naresh Rayapati
Attachment: JenkinsRetryWithPrompt.gif

naresh.rayapati@gmail.com (JIRA)

unread,
Aug 30, 2018, 2:45:02 PM8/30/18
to jenkinsc...@googlegroups.com
Naresh Rayapati commented on New Feature JENKINS-53295
 
Re: error log should be collapsed by default too

We also have few steps implementing retry on these long running shell scrips, with retryCount of 3 to 4 times, causing the same issue.

kutzi@gmx.de (JIRA)

unread,
Sep 6, 2018, 12:02:01 PM9/6/18
to jenkinsc...@googlegroups.com
kutzi commented on New Feature JENKINS-53295

Yes, please!
There are many annoying things in the way blue ocean is showing/following the logs, but this is one of the most disturbing ones.

Another use case: browsing through the previous few failed builds and trying to looks into the artifacts where more info (e.g. log files) is stored.
On every build blue ocean is 1st scrolling down to show the end of the failed step log and I have to manually scroll up, again, to get to the artifacts tab.

simgunz@gmail.com (JIRA)

unread,
Feb 14, 2019, 3:41:02 AM2/14/19
to jenkinsc...@googlegroups.com

Same problem here. I also support this feature.

lpiedra@gmail.com (JIRA)

unread,
Dec 13, 2019, 4:57:01 AM12/13/19
to jenkinsc...@googlegroups.com

Certainly, having the full error log displayed by default in steps that are being retried is really annoying. It kills all the purpose of the Blue Ocean interface.

 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages