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 AppInfoJson
buildAppInfoJson(CloudHubDeployer cloudhubDeployer)
static boolean
checkIfApiStarted(CloudHubRequest cloudHubRequest, PrintStream logger, int verifyIntervalInSeconds)
static com.google.gson.JsonArray
checkIfAutoScalePolicyExists(CloudHubRequest cloudHubRequest, PrintStream logger)
static boolean
checkPattern(String test, String regExPattern)
static List<AutoScalePolicy>
formatAutoScalePolicy(List<AutoScalePolicy> autoScalePolicyList)
static String
getArtifactPath(hudson.FilePath workspace, String filePath)
static List<AutoScalePolicy>
getFinalAutoScalePolicy(List<AutoScalePolicy> policyList, com.google.gson.JsonArray policyJsonArray)
static RequestMode
getFinalRequestMode(CloudHubRequest cloudHubRequest)
static void
logOutputStandard(PrintStream logger, String output)
static void
logOutputStandard(PrintStream logger, String headline, String output)
static void
validateAutoScalePolicy(List<AutoScalePolicy> policy)
static String
verifyOrGetEnvId(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
-
-