Package com.fortify.plugin.jenkins
Class FindExecutableRemoteService
- java.lang.Object
-
- com.fortify.plugin.jenkins.FindExecutableRemoteService
-
- All Implemented Interfaces:
FilePath.FileCallable<String>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public class FindExecutableRemoteService extends Object implements FilePath.FileCallable<String>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FindExecutableRemoteService(String filename, String home, String path, FilePath workspace)
Searches the PATH on the remote machine
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkRoles(org.jenkinsci.remoting.RoleChecker arg0)
String
invoke(File file, hudson.remoting.VirtualChannel channel)
-
-
-
Constructor Detail
-
FindExecutableRemoteService
public FindExecutableRemoteService(String filename, String home, String path, FilePath workspace)
Searches the PATH on the remote machine- Parameters:
filename
- - name of the executable to look forhome
- - potential home directory - if not null, will first search [user.home]/bin/filenamepath
- - path environment variable - depending on OS, must use correct path separatorworkspace
- - current workspace - useful to find gradlew
-
-
Method Detail
-
invoke
public String invoke(File file, hudson.remoting.VirtualChannel channel) throws IOException
- Specified by:
invoke
in interfaceFilePath.FileCallable<String>
- Throws:
IOException
-
checkRoles
public void checkRoles(org.jenkinsci.remoting.RoleChecker arg0) throws SecurityException
- Specified by:
checkRoles
in interfaceorg.jenkinsci.remoting.RoleSensitive
- Throws:
SecurityException
-
-