Class HostSelectionWaitNotification
java.lang.Object
org.jenkinsci.plugins.vsphere.tools.HostSelectionWaitNotification
Adapts a pipeline's
hostSelectionWaitNotification to the HostSelectionOptions.Listener
that host selection tells. The closure is called with two arguments: the message that was just logged
(a String) and the HostSelectionWaitReason.
Only a plain Groovy closure can be called, not one written in the Pipeline script itself, as that is executed by the script's own interpreter and cannot be run from the thread of a step.
-
Method Summary
-
Method Details
-
of
@CheckForNull public static HostSelectionOptions.Listener of(@CheckForNull Object closure) throws VSphereException - Parameters:
closure- what the pipeline passed; null for none- Returns:
- the listener calling it, or null if there is none
- Throws:
VSphereException- if it is not a closure
-