List of usage examples for com.amazonaws.services.codebuild.model ArtifactsType S3
ArtifactsType S3
To view the source code for com.amazonaws.services.codebuild.model ArtifactsType S3.
Click Source Link
From source file:CodeBuilder.java
License:Open Source License
public String generateS3ArtifactURL(String baseURL, String artifactLocation, String artifactType) throws UnsupportedEncodingException { if (artifactLocation == null || artifactLocation.isEmpty() || artifactType == null || !artifactType.equals(ArtifactsType.S3.toString())) { return ""; } else {//from w ww . j av a 2 s. com return new StringBuilder().append(baseURL).append("region=" + this.region + "#") .append("&bucket=" + URLEncoder.encode(artifactLocation, "UTF-8")).toString(); } }