Reputation: 937
I've got a CodePipeline working with a Java application. I'm pulling the source from GitHub, building a package with Maven using CodeBuild, and deploying to ElasticBeanstalk in the Deploy stage. My problem is that CodeBuild is returning the artifact in a zip file:
[Container] 2019/03/21 13:23:07 Expanding target/*.war
[Container] 2019/03/21 13:23:07 Found 1 file(s)
[Container] 2019/03/21 13:23:09 Phase complete: UPLOAD_ARTIFACTS Success: true
I'm grabbing the resulting war file after the Maven package. I only want the war file to be picked up by ElasticBeanstalk. How I can force CodePipeline/CodeBuild to NOT compress the file?
Upvotes: 2
Views: 987
Reputation: 14905
You can specify any type of file, with or without compression in the artifacts
section of your buildspec.yaml
file.
Here is an example I am using with docker :
artifacts:
files: imagedefinitions.json
You will find the full doc of possible values and other examples here : https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
Upvotes: 1