Class ComputeHashCallable
- java.lang.Object
-
- jenkins.MasterToSlaveFileCallable<String>
-
- org.jenkinsci.plugins.pipeline.utility.steps.fs.ComputeHashCallable
-
- All Implemented Interfaces:
FilePath.FileCallable<String>,Serializable,org.jenkinsci.remoting.RoleSensitive
public class ComputeHashCallable extends MasterToSlaveFileCallable<String>
Computes the hash of a file on the agent.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComputeHashCallable(String hashAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringhashOfFile(File file)Stringinvoke(File file, hudson.remoting.VirtualChannel virtualChannel)-
Methods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
-
-
-
Constructor Detail
-
ComputeHashCallable
public ComputeHashCallable(String hashAlgorithm)
-
-
Method Detail
-
invoke
public String invoke(File file, hudson.remoting.VirtualChannel virtualChannel) throws IOException
- Throws:
IOException
-
hashOfFile
public String hashOfFile(File file) throws NoSuchAlgorithmException, IOException
- Throws:
NoSuchAlgorithmExceptionIOException
-
-