[JIRA] (JENKINS-62161) htmlpublisher-plugin occasionally fails with "script returned exit code 1"

8 views
Skip to first unread message

ndimiduk@gmail.com (JIRA)

unread,
May 4, 2020, 5:55:03 PM5/4/20
to jenkinsc...@googlegroups.com
Nick Dimiduk created an issue
 
Jenkins / Bug JENKINS-62161
htmlpublisher-plugin occasionally fails with "script returned exit code 1"
Issue Type: Bug Bug
Assignee: Richard Bywater
Components: htmlpublisher-plugin
Created: 2020-05-04 21:54
Priority: Major Major
Reporter: Nick Dimiduk

Over in Apache Foundation, Apache HBase makes use of Jenkins as a foundation-provided resource. We define a job that is driven by a Jenkinsfile. That jobs is comprised of multiple parallel stages. Many of the stages are nearly identical, and most of them conclude with a stanza that looks like

post {
  always {
    ...
    publishHTML target: [
      allowMissing         : true,
      keepAll              : true,
      alwaysLinkToLastBuild: true,
      // Has to be relative to WORKSPACE.
      reportDir            : "${env.OUTPUT_DIR_RELATIVE}",
      reportFiles          : 'console-report.html',
      reportName           : 'JDK11 Nightly Build Report (Hadoop3)'
    ]
  }
}

Occasionally, stages in our BlueOcean builds will be marked as failed on this "Publish HTML reports" action. Output looks like this

[2020-05-02T11:13:44.352Z] [htmlpublisher] Archiving HTML reports...
[2020-05-02T11:13:44.370Z] [htmlpublisher] Archiving at BUILD level /home/jenkins/jenkins-slave/workspace/HBase_Nightly_branch-2.3@2/output-jdk11-hadoop3 to /x1/jenkins/jenkins-home/jobs/HBase Nightly/branches/branch-2-3.v4n2jn/builds/62/htmlreports/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29
script returned exit code 1

I've been working with the fine folks in ASF Infra to track down the issues, on my quest for passing builds. Unfortunately, we're stumped. Any advice or suggestions are most welcome!

Thanks in advance.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

richard@bywater.nz (JIRA)

unread,
May 4, 2020, 7:49:03 PM5/4/20
to jenkinsc...@googlegroups.com
Richard Bywater commented on Bug JENKINS-62161
 
Re: htmlpublisher-plugin occasionally fails with "script returned exit code 1"

Nick Dimiduk I don't believe this is an issue with HTML Publisher - the only reason that I think you are seeing the Exit message after the publishHTML step is because publishHTML is set as a post action which always happens even with a failure.

I'd suspect that the issue is actually coming from https://github.com/apache/hbase/blob/master/dev-support/Jenkinsfile#L233 (and so tracking down why its hitting that state might be what's needed). 

ndimiduk@gmail.com (JIRA)

unread,
May 4, 2020, 8:07:02 PM5/4/20
to jenkinsc...@googlegroups.com

We see this failure in the html publisher even when the underly job would have otherwise succeeded. Indeed, this is the reason I started to pursue this problem in the first place. Curious, though, that you suspect this action is reporting the failure status of a different action in the pipeline. Seems like that should be a separate bug.

Thanks for the quick response Richard Bywater!

Reply all
Reply to author
Forward
0 new messages