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 void
createPkcs11ProviderConfig(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, FilePath file, String userProvidedVenafiClientToolsDir)
static void
deleteFileOrPrintStackTrace(Logger logger, FilePath file)
static void
deleteFileRecursiveOrPrintStackTrace(Logger logger, FilePath file)
static FilePath
detectVenafiClientToolsDir(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir)
static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
findCredentialsById(String credentialsId, Run<?,?> run)
static FilePath
getCspConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir)
static String
getFqdn(Computer computer, Launcher launcher, AgentInfo agentInfo)
static FilePath
getPkcs11ConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String venafiCodeSigningInstallDir)
static FilePath
getPkcs11DriverLibraryPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir)
static String
getSignToolPath(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:
IOException
InterruptedException
-
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:
InterruptedException
IOException
-
getPkcs11DriverLibraryPath
public static FilePath getPkcs11DriverLibraryPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getPkcs11ConfigToolPath
public static FilePath getPkcs11ConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String venafiCodeSigningInstallDir) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
createPkcs11ProviderConfig
public static void createPkcs11ProviderConfig(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, FilePath file, String userProvidedVenafiClientToolsDir) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getCspConfigToolPath
public static FilePath getCspConfigToolPath(Launcher launcher, AgentInfo agentInfo, FilePath nodeRoot, String userProvidedVenafiClientToolsDir) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
-