Class ShellScriptVerifier
java.lang.Object
hudson.model.AbstractDescribableImpl<LabelVerifier>
hudson.plugins.label_verifier.LabelVerifier
hudson.plugins.label_verifier.verifiers.ShellScriptVerifier
- All Implemented Interfaces:
ExtensionPoint
,Describable<LabelVerifier>
Verifies the label by running a shell script.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.plugins.label_verifier.LabelVerifier
getDescriptor
-
Field Details
-
script
-
-
Constructor Details
-
ShellScriptVerifier
-
-
Method Details
-
verify
public void verify(LabelAtom label, Computer c, hudson.remoting.Channel channel, FilePath root, TaskListener listener) throws IOException, InterruptedException Description copied from class:LabelVerifier
Called before aComputer
becomes online to verify if the label assignment is correct.- Specified by:
verify
in classLabelVerifier
- Parameters:
label
- Label whose validity you'll check.channel
- This is the channel object to talk to the slave. (This is the same object returned byComputer.getChannel()
once it's connected.root
- The directory where this slave stores files. The same asNode.getRootPath()
, except that method returns null until the slave is connected. So this parameter is passed explicitly instead.listener
- This is connected to the launch log of the computer. Since this method is called synchronously from the thread that launches a computer, if this method performs a time-consuming operation, this listener should be notified of the progress. This is also a good listener for reporting problems.- Throws:
IOException
- Exceptions will be recorded to the listener, and the computer will not become online.InterruptedException
- Exceptions will be recorded to the listener, and the computer will not become online.
-