-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Windows Server 2012 R2 (both master and agent)
Jenkins 2.138.1
Pipeline 2.6
Durable task plugin 1.26
Pipeline Nodes and Processes 2.22
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print):
stage('1') { node('uitest') { bat 'echo something' } }
After 10 minutes the console output prompts this and the build fails:
ERROR: script apparently exited with code 0 but asynchronous notification was lost
In addition the system log gets these exceptions:
- java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer
- hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from
- relates to
-
JENKINS-52165 Use push rather than pull for durable task logging
-
- Reopened
-
[JENKINS-53888] Batch step running on a node other than the master fails
Component/s | Original: batch-task-plugin [ 15505 ] |
Assignee | Original: Kohsuke Kawaguchi [ kohsuke ] |
Description |
Original:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} {{ }}} {{}}} |
New:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} {{ }}} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from |
Description |
Original:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} {{ }}} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from |
New:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} \{{ }}} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior is new to 2.5 |
Description |
Original:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} \{{ }}} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior is new to 2.5 |
New:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} { { } }} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior is new to pipeline 2.5 |
Environment |
Original:
Jenkins 2.138.1 Pipeline 2.5 |
New:
Jenkins 2.138.1 Pipeline 2.6 |
Description |
Original:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} { { } }} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior is new to pipeline 2.5 |
New:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} { { } }} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior happens since pipeline 2.5 |
Attachment | New: log.txt [ 44654 ] |
Description |
Original:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{stage('1') {}} {{ node('uitest') {}} {{ int returnCode = bat(script: 'echo something', returnStatus: true)}} {{ echo "RETURN CODE: $returnCode"}} { { } }} {{}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior happens since pipeline 2.5 |
New:
Running a batch command on another node takes several minutes and then fails. Attached example (all Windows, the echo command won't print): {{ {{stage('1') {}}}} {{{{ node('uitest') {}}}} {{{{ bat 'echo something'}}}} {{{{ }}}}} {{{{}}}}} After 10 minutes the console output prompts this and the build fails: ERROR: script apparently exited with code 0 but asynchronous notification was lost In addition the system log gets these exceptions: * java.lang.NoClassDefFoundError: Could not initialize class hudson.slaves.SlaveComputer * hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from This behavior happens since pipeline 2.5 |
Environment |
Original:
Jenkins 2.138.1 Pipeline 2.6 |
New:
Windows Server 2012 (both master and agent) Jenkins 2.138.1 Pipeline 2.6 |