remote.logLevel = 'INFO'
remote.pty = true
+ // Ensure the VM is ready
+ sshCommand remote: remote, command: 'cloud-init status --wait'
+
// Force time sync to avoid clock drift and invalid certificates
sshCommand remote: remote, command: """
sudo apt update