Class ServiceHelper
- java.lang.Object
-
- io.iktech.jenkins.plugins.artifactz.ServiceHelper
-
public class ServiceHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ServiceHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
getProxyCredentials()
static org.apache.http.HttpHost
getProxyHost()
static String
getToken(Run<?,?> run, TaskListener taskListener, String inlineToken)
static void
interruptExecution(Run<?,?> run, TaskListener taskListener, String message)
static void
interruptExecution(Run<?,?> run, TaskListener taskListener, String prefix, Throwable e)
-
-
-
Method Detail
-
interruptExecution
public static void interruptExecution(@Nonnull Run<?,?> run, @Nonnull TaskListener taskListener, String message)
-
interruptExecution
public static void interruptExecution(@Nonnull Run<?,?> run, @Nonnull TaskListener taskListener, String prefix, Throwable e)
-
getProxyCredentials
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getProxyCredentials()
-
getProxyHost
public static org.apache.http.HttpHost getProxyHost() throws MalformedURLException
- Throws:
MalformedURLException
-
getToken
public static String getToken(Run<?,?> run, TaskListener taskListener, String inlineToken) throws AbortException
- Throws:
AbortException
-
-