Hi All,
Currently i have a Pipeline that Create a Virtual Machine on vSphere using
Ansible, which works fine, but lately i'm getting 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)
While in my Stage i have the following:
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"'''
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f23a3361-5f4b-4303-b5e1-c735eeee11c4%40googlegroups.com.