public class CodeBuilderValidation extends Object
Modifier and Type | Field and Description |
---|---|
static String |
buildInstanceRequiredError |
static String |
invalidArtifactNamespaceTypeError |
static String |
invalidArtifactsPackagingError |
static String |
invalidArtifactTypeError |
static String |
invalidCacheModesError |
static String |
invalidCacheTypeError |
static String |
invalidCloudWatchLogsStatusError |
static String |
invalidComputeTypeError |
static String |
invalidCredentialsIdError |
static String |
invalidEnvironmentTypeError |
static String |
invalidProxyError |
static String |
invalidRegionError |
static String |
invalidS3LogsStatusError |
static String |
invalidSourceTypeError |
static String |
invalidSourceUploaderConfigError |
static String |
invalidSourceUploaderNullS3ClientError |
static String |
invalidSourceUploaderNullWorkspaceError |
static String |
invalidTimeoutOverrideError |
static String |
projectRequiredError |
static String |
sourceControlTypeRequiredError |
Constructor and Description |
---|
CodeBuilderValidation() |
Modifier and Type | Method and Description |
---|---|
static void |
checkAWSClientFactoryJenkinsCredentialsConfig(String credentialsId) |
static void |
checkAWSClientFactoryRegionConfig(String region) |
static boolean |
checkBucketIsVersioned(String bucketName,
AWSClientFactory awsClientFactory) |
static boolean |
checkCloudWatchMonitorConfig(com.amazonaws.services.logs.AWSLogsClient client) |
static String |
checkEssentialConfig(CodeBuilder cb) |
static boolean |
checkJenkinsSourceOverrides(String sourceTypeOverride,
String sourceLocationOverride) |
static void |
checkS3SourceUploaderConfig(hudson.FilePath workspace,
com.amazonaws.services.s3.AmazonS3Client s3Client,
String localSourcePath,
String workspaceSubdir) |
static boolean |
checkSourceTypeS3(String sourceType) |
static String |
checkStartBuildOverridesConfig(CodeBuilder cb) |
static boolean |
envVariablesHaveRestrictedPrefix(Collection<com.amazonaws.services.codebuild.model.EnvironmentVariable> envVariables) |
public static final String invalidArtifactTypeError
public static final String invalidArtifactsPackagingError
public static final String invalidArtifactNamespaceTypeError
public static final String invalidTimeoutOverrideError
public static final String invalidRegionError
public static final String invalidProxyError
public static final String invalidCredentialsIdError
public static final String invalidSourceTypeError
public static final String invalidComputeTypeError
public static final String invalidEnvironmentTypeError
public static final String invalidCacheTypeError
public static final String invalidCacheModesError
public static final String invalidCloudWatchLogsStatusError
public static final String invalidS3LogsStatusError
public static final String invalidSourceUploaderNullWorkspaceError
public static final String invalidSourceUploaderNullS3ClientError
public static final String invalidSourceUploaderConfigError
public static final String projectRequiredError
public static final String sourceControlTypeRequiredError
public static final String buildInstanceRequiredError
public static String checkEssentialConfig(CodeBuilder cb)
public static String checkStartBuildOverridesConfig(CodeBuilder cb)
public static boolean envVariablesHaveRestrictedPrefix(Collection<com.amazonaws.services.codebuild.model.EnvironmentVariable> envVariables)
public static boolean checkCloudWatchMonitorConfig(com.amazonaws.services.logs.AWSLogsClient client)
public static void checkS3SourceUploaderConfig(hudson.FilePath workspace, com.amazonaws.services.s3.AmazonS3Client s3Client, String localSourcePath, String workspaceSubdir) throws com.amazonaws.services.codebuild.model.InvalidInputException
com.amazonaws.services.codebuild.model.InvalidInputException
public static boolean checkSourceTypeS3(String sourceType)
public static boolean checkJenkinsSourceOverrides(String sourceTypeOverride, String sourceLocationOverride)
public static boolean checkBucketIsVersioned(String bucketName, AWSClientFactory awsClientFactory)
public static void checkAWSClientFactoryJenkinsCredentialsConfig(String credentialsId) throws com.amazonaws.services.codebuild.model.InvalidInputException
com.amazonaws.services.codebuild.model.InvalidInputException
public static void checkAWSClientFactoryRegionConfig(String region) throws com.amazonaws.services.codebuild.model.InvalidInputException
com.amazonaws.services.codebuild.model.InvalidInputException
Copyright © 2016–2023. All rights reserved.