-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.86, Ubuntu-16.04-3
Starting in VSphere Plugin 2.16, the behaviour at the end of a job has broken.
I configure the node to disconnect after 1 build, and to shutdown at that point. This, along with snapping back to the snapshot upon startup, gives me a guaranteed-clean machine at the start of every build.
Starting in version 2.16, the plugin seems to opportunistically ignoring the "disconnect after (1) builds", and is re-using the node to run the next queued job without enforcing a snap back to the snapshot. This next build then has high odds of failing or mis-building, as the node is unclean.
WORKAROUND: Revert back to plugin version 2.15, where the error does not occur.
[JENKINS-47821] vsphere plugin 2.16 not respecting slave disconnect settings
Assignee | New: pjdarton [ pjdarton ] |
Issue Type | Original: Improvement [ 4 ] | New: Bug [ 1 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
You're saying it's a regression since 2.15? Hmm, ok... I certainly hadn't intended to cause this behavior but I'll see if I can find the cause and fix it...
If you can provide any further information then that'd greatly simplify the debugging process.
e.g. what do you mean by "opportunistically"? What's the scenario in which the VM gets re-used (when it shouldn't) vs being disposed of correctly?