-
-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipeline shell step aborts prematurely with ERROR: script returned exit code -1 #474
Comments
@sophia-guo - Do you mean a possible solution is to add the HEARTBEAT_CHECK_INTERVAL as a commandline option to the JVM that runs the Jenkins agents? |
@smlambert yes, though I don't have permission to try. |
I believe I do, so I can add it to the JVM_OPTIONS for the agent for all test machines. (Likely won't do this until later tonight). |
Added to the 2 ppcle test machines that seem to be lagging, and where we see this issue most. We can see if this will resolve the problem. If other machines also end up having this issue, we will also want to update them. |
Seen this error on x86-64_linux too: https://ci.adoptopenjdk.net/view/work%20in%20progress/job/Grinder/117/console.
|
According to the Jenkins issue (https://issues.jenkins-ci.org/browse/JENKINS-48300?focusedCommentId=330383&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-330383), you need to set the option on the JVM that runs the Jenkins master. We have added this at OpenJ9 and well as to 2 Jenkins' internal to IBM and it seems to resolve the issue. |
This has been added to master jenkins and it's been restarted |
I'll let you close if the issue is resolved |
It happened again on windows. So probably we need to double check if the option is set on master or if the setting was reset by some master update? |
Didn't see this issue for a long time. Assume it's solved by adding the options. |
Currently Facing the Above issue.. I have added the following into the Pipeline |
have you solve the problem? |
I'm getting same issue @sophia-guo please help me how to fix this issue
|
@yudiz-vinayak - see the note in #474 (comment) about setting the -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300 (https://issues.jenkins-ci.org/browse/JENKINS-48300?focusedCommentId=330383&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-330383) - in the init script of the Jenkins server you are using. |
Pipeline shell step aborts prematurely with ERROR: script returned exit code -1, which suggests
https://ci.adoptopenjdk.net/view/OpenJDK%20tests/job/openjdk10_j9_openjdktest_ppc64le_linux/52/consoleFull
This issues happened intermittently. It seemed if there is no log information for a period of time pipeline will prematurely aborts and return with exit code -1. That means if some tests take longer without output may get this issue?
According to the message, Set master JVM with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=300 may help.
The text was updated successfully, but these errors were encountered: