2つのスレーブマシン(VM)を使用するマスタ - スレーブ設定を使用します。私はプログラムをインストールし、それを実行し、別のプロジェクト(下流タスク)を構築するだけでビルド後のアクションで「Windowsバッチコマンドを実行し、」スレーブマシンの再起動後にJenkinsビルドジョブがダウンストリームジョブを続行しない
shutdown.exe /r /t 00
を使用してスレーブマシンをリブートするビルド仕事をしています。ただし、再起動時にジョブが即座に失敗し、ダウンストリームタスクが無視されます。あるマシンが他のマシンからクローンされていても、1つのVMで動作し、他のマシンでは動作しません。それは私を狂わせる、どんなアイデアですか?事前に
Building remotely on TESTVM_1 in workspace C:\Jenkins\workspace\Execute TestApp
[Execute TestApp] $ cmd /c call C:\QATEMP~1\hudson5086584301890012619.bat
C:\Jenkins\workspace\Execute TestApp>shutdown.exe /r /t 00
C:\Jenkins\workspace\Execute TestApp>exit 0
FATAL: java.io.IOException: Connection aborted: [email protected]88[name=TESTVM_1]
hudson.remoting.RequestAbortedException: java.io.IOException: Connection aborted: [email protected]88[name=TESTVM_1]
at hudson.remoting.Request.abort(Request.java:303)
at hudson.remoting.Channel.terminate(Channel.java:863)
at hudson.remoting.Channel$1.terminate(Channel.java:509)
at hudson.remoting.AbstractByteArrayCommandTransport$1.terminate(AbstractByteArrayCommandTransport.java:71)
at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:208)
at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:629)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at ......remote call to TESTVM_1(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1433)
at hudson.remoting.Request.call(Request.java:172)
at hudson.remoting.Channel.call(Channel.java:796)
at hudson.Launcher$RemoteLauncher.kill(Launcher.java:953)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Caused by: java.io.IOException: Connection aborted: [email protected]88[name=TESTVM_1]
at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:208)
at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:629)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
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 by: java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at org.jenkinsci.remoting.nio.FifoBuffer$Pointer.receive(FifoBuffer.java:137)
at org.jenkinsci.remoting.nio.FifoBuffer.receive(FifoBuffer.java:310)
at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:561)
... 6 more
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE
ありがとう:
これは私がコンソール出力の取得エラーです!