Class Utils
- java.lang.Object
-
- io.jenkins.plugins.venaficodesigning.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreatePkcs11ProviderConfig(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, FilePath file, String userProvidedVenafiClientToolsDir)static voiddeleteFileOrPrintStackTrace(Logger logger, FilePath file)static voiddeleteFileRecursiveOrPrintStackTrace(Logger logger, FilePath file)static FilePathdetectVenafiClientToolsDir(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir)static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentialsfindCredentialsById(String credentialsId, Run<?,?> run)static FilePathgetCspConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir)static StringgetFqdn(Computer computer, Launcher launcher, AgentInfo agentInfo)static FilePathgetPkcs11ConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String venafiCodeSigningInstallDir)static FilePathgetPkcs11DriverLibraryPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir)static StringgetSignToolPath(String userProvidedSignToolPath)
-
-
-
Method Detail
-
findCredentialsById
@Nullable public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials findCredentialsById(String credentialsId, Run<?,?> run)
-
getFqdn
public static String getFqdn(Computer computer, Launcher launcher, AgentInfo agentInfo) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
deleteFileOrPrintStackTrace
public static void deleteFileOrPrintStackTrace(Logger logger, FilePath file)
-
deleteFileRecursiveOrPrintStackTrace
public static void deleteFileRecursiveOrPrintStackTrace(Logger logger, FilePath file)
-
detectVenafiClientToolsDir
public static FilePath detectVenafiClientToolsDir(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
getPkcs11DriverLibraryPath
public static FilePath getPkcs11DriverLibraryPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
getPkcs11ConfigToolPath
public static FilePath getPkcs11ConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String venafiCodeSigningInstallDir) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
createPkcs11ProviderConfig
public static void createPkcs11ProviderConfig(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, FilePath file, String userProvidedVenafiClientToolsDir) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
getCspConfigToolPath
public static FilePath getCspConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir) throws InterruptedException, IOException
- Throws:
InterruptedExceptionIOException
-
-