Class DeployHelper
- java.lang.Object
-
- org.jenkinsci.plugins.cloudhubdeployer.utils.DeployHelper
-
public final class DeployHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description DeployHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AppInfoJsonbuildAppInfoJson(CloudHubDeployer cloudhubDeployer)static booleancheckIfApiStarted(CloudHubRequest cloudHubRequest, PrintStream logger, int verifyIntervalInSeconds)static com.google.gson.JsonArraycheckIfAutoScalePolicyExists(CloudHubRequest cloudHubRequest, PrintStream logger)static booleancheckPattern(String test, String regExPattern)static List<AutoScalePolicy>formatAutoScalePolicy(List<AutoScalePolicy> autoScalePolicyList)static StringgetArtifactPath(hudson.FilePath workspace, String filePath)static List<AutoScalePolicy>getFinalAutoScalePolicy(List<AutoScalePolicy> policyList, com.google.gson.JsonArray policyJsonArray)static RequestModegetFinalRequestMode(CloudHubRequest cloudHubRequest)static voidlogOutputStandard(PrintStream logger, String output)static voidlogOutputStandard(PrintStream logger, String headline, String output)static voidvalidateAutoScalePolicy(List<AutoScalePolicy> policy)static StringverifyOrGetEnvId(String response, String envIdOrName)
-
-
-
Method Detail
-
buildAppInfoJson
public static AppInfoJson buildAppInfoJson(CloudHubDeployer cloudhubDeployer) throws ValidationException
- Throws:
ValidationException
-
getArtifactPath
public static String getArtifactPath(hudson.FilePath workspace, String filePath) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
logOutputStandard
public static void logOutputStandard(PrintStream logger, String output)
-
logOutputStandard
public static void logOutputStandard(PrintStream logger, String headline, String output)
-
getFinalRequestMode
public static RequestMode getFinalRequestMode(CloudHubRequest cloudHubRequest) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
checkIfApiStarted
public static boolean checkIfApiStarted(CloudHubRequest cloudHubRequest, PrintStream logger, int verifyIntervalInSeconds) throws CloudHubRequestException, InterruptedException
-
validateAutoScalePolicy
public static void validateAutoScalePolicy(List<AutoScalePolicy> policy) throws ValidationException
- Throws:
ValidationException
-
checkIfAutoScalePolicyExists
public static com.google.gson.JsonArray checkIfAutoScalePolicyExists(CloudHubRequest cloudHubRequest, PrintStream logger) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
getFinalAutoScalePolicy
public static List<AutoScalePolicy> getFinalAutoScalePolicy(List<AutoScalePolicy> policyList, com.google.gson.JsonArray policyJsonArray)
-
formatAutoScalePolicy
public static List<AutoScalePolicy> formatAutoScalePolicy(List<AutoScalePolicy> autoScalePolicyList)
-
verifyOrGetEnvId
public static String verifyOrGetEnvId(String response, String envIdOrName) throws CloudHubRequestException
- Throws:
CloudHubRequestException
-
-