Jenkins multijob show failed when all sub jobs succeed

Kerwen

I have a multijob which has 6 child job. During test, I found that the multijob always show failed even all sub jobs succeed. The error message is:

Finished Build : 1.0.0.1 of Job : Sub_Job_6 with status : SUCCESS
FATAL: Channel "unknown": Remote call on JNLP4-connect connection from build_machine/10.224.113.202:51903 failed. The channel is closing down or has closed down
java.nio.channels.ClosedChannelException
    at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
    at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
    at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:789)
    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused: hudson.remoting.ChannelClosedException: Channel "unknown": Remote call on JNLP4-connect connection from build_machine/10.224.113.202:51903 failed. The channel is closing down or has closed down
    at hudson.remoting.Channel.call(Channel.java:945)
    at hudson.Launcher$RemoteLauncher.kill(Launcher.java:1078)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
    at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:148)
    at hudson.model.Run.execute(Run.java:1727)
    at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:76)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
Kerwen

I found the root cause. One of my sub job is to power off, power on the build machine( a reboot actually). After reboot, Jenkins client will re-connect to Jenkins server. The server may think it's a new conversation, the old one has stopped with some exception. So the final result will show failed.
After I removed this sub job, the multijob showed success finally.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Jenkins Multijob filnaly result

Jenkins: Sharing variables in MultiJob

commit transaction ONLY when ALL queries succeed

How can I show all Jenkins jobs in one view, even if they are contained in folders?

Show all scheduled cron jobs

When executing jobs in Jenkins pipeline and a job is failed at night how do you resume it in the same night?

RxJs and redux-observable. Append value when ajax succeed or failed

Jenkins Group jobs together to define Build periodically on all jobs in the group

Generate jenkins jobs for all github repos

Get all pipeline Jobs in Jenkins Groovy Script

Jenkins SVN credentials for all new jobs

How to duplicate and rename all Jenkins jobs?

Why does Jenkins pipeline Stage View show red for all stages if only one stage failed?

Issue on Build Blocker and Multijob plugin Integration in jenkins

Jobs will not load when copied to new Jenkins server

Disable all Jenkins jobs from a given Jenkins View / Tab

Show sub sub menu when mouse is hover

Show help about comment triggered jenkins jobs in gerrit

Selenium tests fail when run by Jenkins, but succeed when run by command line

To obtain logs from the last 5 months that show jobs that have failed

Encoding detection for a string-data in a byte[] succeed and after that all string comparisons failed

Jenkins auto deploying failed, when all settings are right. -- error in mapperLocations, Spring (illegalArgumentException, TomcatManagerException)

How to show all sub-categories articles?

Jenkins delete builds older than latest 20 builds for all jobs

Temporarily stop all scheduled jobs in Jenkins from running

How to display multi Jenkins jobs execution status in all node?

Jenkins pipeline pass all parameters down to downstream jobs

How to get and save on txt all jenkins jobs logs

How to get the list of all projects/jobs in jenkins using java programmatically?