AWS CodeBuild Buildspec: Difference between revisions
Jump to navigation
Jump to search
m (Ovidiu moved page AWS CodeBuild Build Specification to AWS CodeBuild Buildspec) |
|||
Line 42: | Line 42: | ||
===files=== | ===files=== | ||
=Examples= | |||
==Verifying that an Environment Variable is Set== | |||
... | |||
phases: | |||
install: | |||
commands: | |||
- if [ -z "${AWS_REGION}" ]; then echo "AWS_REGION variable not set" 1>&2; exit 1; fi |
Revision as of 20:51, 14 March 2019
External
Internal
Overview
Structure
version
env
variables
This section sets environment variables that will propagate to the container that performs the build:
env:
variables:
MY_VARIABLE: 'some value'
phases
install
commands
build
commands
post_build
commands
artifacts
files
Examples
Verifying that an Environment Variable is Set
... phases: install: commands: - if [ -z "${AWS_REGION}" ]; then echo "AWS_REGION variable not set" 1>&2; exit 1; fi