Jenkins Build Timeout

658 views
Skip to first unread message

David Foley

unread,
Apr 6, 2020, 1:08:00 PM4/6/20
to Jenkins Users
Hi All,

Currently I'm having an Issue with jenkins Hearbeat Timeout, during my build stage within a Pipeline: Within my build Stage I'm after adding in a System.setPropery but still this doesn't seem to dealing with the Timout of 10Mins

  stage('Creating Virutal Machine'){
            script
{
               
System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL", "86400");
               
           
}
         withCredentials
([usernamePassword(credentialsId: '', passwordVariable: 'local_pass', usernameVariable: 'local_user'), usernamePassword(credentialsId: 'ServiceAccount', passwordVariable: 'pass', usernameVariable: 'user')]) {
             
if (params.Second_Drive == "Yes" ) {
                sh label
: '', script: '''ansible-playbook create_vm1.yaml  --extra-vars "vcenter='$vCenter' password=$pass cluster='$Cluster' datacenter='$DataCenter' VM_Name='$Virtual_Machine_Name' template='$Template' datastore='$DataStore' network_name='$Network' ip=$IP_ADDRESS domain=$Domain netmask=$Netmask gateway=$Gateway local_pass=$local_pass mb=$RAM cpu=$CPU"'''
             
}
             
else {
                 sh label
: '', script: '''ansible-playbook create_vm.yaml  --extra-vars "vcenter='$vCenter' password=$pass cluster='$Cluster' datacenter='$DataCenter' VM_Name='$Virtual_Machine_Name' template='$Template' datastore='$DataStore' network_name='$Network' ip=$IP_ADDRESS domain=$Domain netmask=$Netmask gateway=$Gateway local_pass=$local_pass mb=$RAM cpu=$CPU"'''
             
}
         
}
   
}

But most of the time the jobs within Jenkins seems to Error out / Time out with the following: 



TASK [Virtual Machine customization] *******************************************
wrapper script does not seem to be touching the log file in /var/jenkins_home/workspace/vSphere/Virtual Machine Creation@tmp/durable-7b8a591f
(JENKINS-48300: if on an extremely laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400)

Liejun Tao

unread,
Apr 7, 2020, 11:13:13 AM4/7/20
to Jenkins Users
The error itself means the Agent has had no response. Check the Agent side log/status.

For example, I've seen one time the Agent is executing an command waiting for user input, causing this error.
Reply all
Reply to author
Forward
0 new messages