[JIRA] (JENKINS-52209) [Cancelling nested steps due to timeout] aborts a job prematurely

750 views
Skip to first unread message

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 27, 2018, 5:50:02 AM6/27/18
to jenkinsc...@googlegroups.com
Vassilena Treneva created an issue
 
Jenkins / Bug JENKINS-52209
[Cancelling nested steps due to timeout] aborts a job prematurely
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: full_console_output.zip
Components: pipeline
Created: 2018-06-27 09:49
Environment: Master: CentOS release 6.9 (Final) / Jenkins ver. 2.114
Slave: Windows Server 2016 (amd64) / SSH connected
Priority: Minor Minor
Reporter: Vassilena Treneva

job timeout is set to 2 hr 0 min

when the job is over we see:
06:38:20 BUILD SUCCESSFUL*06:38:20* Total time: 105 minutes 2 seconds

which indicates the build is OK and shortly after that the jobs fails with:

06:38:20 BUILD SUCCESSFUL
06:38:20 Total time: 105 minutes 2 seconds
[Pipeline] }
[Pipeline] // withAnt
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline]

{ (Declarative: Post Actions) [Pipeline] echo 06:38:20 Finished [Pipeline] junit 06:38:20 Recording test results [Pipeline] echo 06:38:26 Changed [Pipeline] echo 06:38:26 Success [Pipeline] deleteDir Cancelling nested steps due to timeout [Pipeline] }

[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at hudson.remoting.Request.call(Request.java:177)
at hudson.remoting.Channel.call(Channel.java:954)
at hudson.FilePath.act(FilePath.java:998)
at hudson.FilePath.act(FilePath.java:987)
at hudson.FilePath.deleteRecursive(FilePath.java:1197)
at org.jenkinsci.plugins.workflow.steps.DeleteDirStep$Execution.run(DeleteDirStep.java:77)
at org.jenkinsci.plugins.workflow.steps.DeleteDirStep$Execution.run(DeleteDirStep.java:69)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 27, 2018, 5:52:01 AM6/27/18
to jenkinsc...@googlegroups.com
Vassilena Treneva updated an issue
Change By: Vassilena Treneva
job timeout is set to 2 hr 0 min

when the job is over we see:
*06:38:20* BUILD SUCCESSFUL*06:38:20* Total time: 105 minutes 2 seconds


Expected result would be to have the jobs passing as its execution time fits the timeout setting of two hours.

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 27, 2018, 5:53:01 AM6/27/18
to jenkinsc...@googlegroups.com
Vassilena Treneva updated an issue
job timeout is set to 2 hr 0 min

when the job is over we see:
*06:38:20* BUILD SUCCESSFUL*06:38:20* Total time: 105 minutes 2 seconds

which indicates the build is OK and shortly after that the jobs fails with:

* 06:38:20 * BUILD SUCCESSFUL
* 06:38:20 * Total time: 105 minutes 2 seconds
[Pipeline] }
[Pipeline] // withAnt
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] echo
* 06:38:20 * Finished
[Pipeline] junit
* 06:38:20 * Recording test results
[Pipeline] echo
* 06:38:26 * Changed
[Pipeline] echo
* 06:38:26 * Success
[Pipeline] deleteDir
Cancelling
deleteDirCancelling nested steps due to timeout
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of
Pipeline
java
Pipelinejava .lang.InterruptedException

at java.lang.Object.wait(Native Method)
at hudson.remoting.Request.call(Request.java:177)
at hudson.remoting.Channel.call(Channel.java:954)
at hudson.FilePath.act(FilePath.java:998)
at hudson.FilePath.act(FilePath.java:987)
at hudson.FilePath.deleteRecursive(FilePath.java:1197)
at org.jenkinsci.plugins.workflow.steps.DeleteDirStep$Execution.run(DeleteDirStep.java:77)
at org.jenkinsci.plugins.workflow.steps.DeleteDirStep$Execution.run(DeleteDirStep.java:69)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

Expected result would be to have the jobs passing as its execution time fits the timeout setting of two hours.

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 27, 2018, 5:53:02 AM6/27/18
to jenkinsc...@googlegroups.com
Vassilena Treneva updated an issue
job timeout is set to 2 hr 0 min

when the job is over we see:
*06:38:20* BUILD SUCCESSFUL*06:38:20* Total time: 105 minutes 2 seconds


which indicates the build is OK and shortly after that the jobs fails with:


*06:38:20* BUILD SUCCESSFUL*06:38:20* Total time: 105 minutes 2 seconds[Pipeline] }[Pipeline] // withAnt[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline]

{ (Declarative: Post Actions)[Pipeline] echo*06:38:20* Finished[Pipeline] junit*06:38:20* Recording test results[Pipeline] echo*06:38:26* Changed[Pipeline] echo*06:38:26* Success[Pipeline] deleteDirCancelling nested steps due to timeout[Pipeline] }

[Pipeline] // stage[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // timestamps[Pipeline] }[Pipeline] // timeout[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of Pipelinejava.lang.InterruptedException

at java.lang.Object.wait(Native Method)
at hudson.remoting.Request.call(Request.java:177)
at hudson.remoting.Channel.call(Channel.java:954)
at hudson.FilePath.act(FilePath.java:998)
at hudson.FilePath.act(FilePath.java:987)
at hudson.FilePath.deleteRecursive(FilePath.java:1197)
at org.jenkinsci.plugins.workflow.steps.DeleteDirStep$Execution.run(DeleteDirStep.java:77)
at org.jenkinsci.plugins.workflow.steps.DeleteDirStep$Execution.run(DeleteDirStep.java:69)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
Expected result would be to have the jobs passing as its execution time fits the timeout setting of two hours.

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 27, 2018, 5:54:01 AM6/27/18
to jenkinsc...@googlegroups.com

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 27, 2018, 5:55:01 AM6/27/18
to jenkinsc...@googlegroups.com

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 28, 2018, 3:01:01 AM6/28/18
to jenkinsc...@googlegroups.com

vasilena.treneva@softwareag.com (JIRA)

unread,
Jun 28, 2018, 3:01:02 AM6/28/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Aug 7, 2018, 6:24:01 PM8/7/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Aug 7, 2018, 6:24:01 PM8/7/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
 
Change By: Andrew Bayer
Component/s: pipeline-model-definition-plugin
Component/s: core
Component/s: pipeline

acarr468@gmail.com (JIRA)

unread,
Dec 3, 2018, 12:02:02 PM12/3/18
to jenkinsc...@googlegroups.com
Adam Carroll commented on Bug JENKINS-52209
 
Re: [Cancelling nested steps due to timeout] aborts a job prematurely

I had this happen to me as well, the last 6 function calls of the OP match my last 6. It appears that deleteRecursive times out, as I have a number of agents that I was looping over to clean up and one of them got the java.lang.InterruptedException after exactly 5 minutes and 0 seconds of runtime. There is no timeout wrapper around this stage (other timeouts in the pipeline are 10 minutes anyway). This is in a cleanup stage using a multibranch pipeline (I unfortunately cannot share my Jenkinsfile).

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages