public class KiuwanUtils extends Object
| Constructor and Description |
|---|
KiuwanUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildAdditionalParameterExpression(hudson.Launcher launcher,
String parameterName,
String parameterValue) |
static String |
buildArgument(hudson.Launcher launcher,
String argument) |
static String |
escapeArg(boolean isUnix,
String arg) |
static URL |
getKiuwanLocalAnalyzerDownloadURL(KiuwanDescriptor descriptor) |
static String |
getPathFromConfiguredKiuwanURL(String prefix,
KiuwanDescriptor descriptor)
Returns a path by concatenating the specified
prefix to a safe and
unique folder name for the kiuwan url in descriptor. |
static String |
getRemoteFileAbsolutePath(hudson.FilePath filePath,
hudson.model.TaskListener listener) |
static com.kiuwan.rest.client.ApiClient |
instantiateClient(KiuwanDescriptor descriptor) |
static Set<Integer> |
parseErrorCodes(String resultCodes) |
public static String getPathFromConfiguredKiuwanURL(String prefix, KiuwanDescriptor descriptor) throws MalformedURLException
prefix to a safe and
unique folder name for the kiuwan url in descriptor. When pointing to Kiuwan cloud,
prefix is returned.prefix - install directory prefixdescriptor - Kiuwan plugin global configuration| prefix | kiuwanURL in descriptor | returned string |
|---|---|---|
| tools/kiuwan | tools/kiuwan | |
| tools/kiuwan | http://mykiuwan.domain.com:9090/saas | tools/kiuwan_mykiuwan.domain.com_9090_L3NhYXM= |
| cache/Kiuwan | http://kw.mydomain.com:7777/saas | cache/Kiuwan_kw.mydomain.com_7777_L3NhYXM= |
MalformedURLException - if the configured kiuwanUrl in descriptor is not a valid URLpublic static URL getKiuwanLocalAnalyzerDownloadURL(KiuwanDescriptor descriptor) throws MalformedURLException
MalformedURLExceptionpublic static String getRemoteFileAbsolutePath(hudson.FilePath filePath, hudson.model.TaskListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static String buildAdditionalParameterExpression(hudson.Launcher launcher, String parameterName, String parameterValue)
public static com.kiuwan.rest.client.ApiClient instantiateClient(KiuwanDescriptor descriptor)
Copyright © 2004-2019. All Rights Reserved.