Begin using your code in CodeCommit and execute a build in this video.
- [Instructor] This is our build spec file,…or build specification file.…We have it checked in in our co-repository.…There are several goals we need to…accomplish with this file.…The first goal is to get…our build environment properly set up.…Our build spec file has an entire section…specific for this purpose.…It's in here, from lines seven through line 16.…The other goals could be anything specific to your project.…Such as running unit tests, executing your build,…or gathering code libraries required by your application.…
In our case, we're installing the Java JDK…and Maven, which is our Java base build tool.…There's a section that's specific…for environment variables as well.…We can use this to pass settings…and control behavior during our build.…In our case, on line five,…we're setting the JAVA_HOME variable.…Which helps Maven…find the Java compiler and supporting libraries.…In the following section, starting on line 17,…is where we specify our build commands.…
In this case, we just need one:…Maven, clean, and package.…
Released
12/11/2018- Checking in source code with CodeCommit
- Building code in CodeBuild
- Deploying code with CodeDeploy
- Creating a DevOps pipeline with CodePipeline
- Creating and deploying an Elastic Beanstalk application
Share this video
Embed this video
Video: buildspec.yml