File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Download and use our codebuild_build.sh script to run your local builds.
2424
2525** Optional:**
2626 -l Used to override the default local agent image.
27+ -r Used to specify a report output directory.
2728 -c Use the AWS configuration and credentials from your local host. This includes ~ /.aws and any AWS_ * environment variables.
2829 -p Used to specify the AWS CLI Profile.
2930 -b Used to specify a buildspec override file. Defaults to buildspec.yml in the source directory.
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ function usage {
3535 echo " -a Used to specify an artifact output directory."
3636 echo " Options:"
3737 echo " -l IMAGE Used to override the default local agent image."
38+ echo " -r Used to specify a report output directory."
3839 echo " -s Used to specify source information. Defaults to the current working directory for primary source."
3940 echo " * First (-s) is for primary source"
4041 echo " * Use additional (-s) in <sourceIdentifier>:<sourceLocation> format for secondary source"
@@ -60,10 +61,11 @@ awsconfig_flag=false
6061mount_src_dir_flag=false
6162docker_privileged_mode_flag=false
6263
63- while getopts " cmdi:a:s:b:e:l:p:h" opt; do
64+ while getopts " cmdi:a:r: s:b:e:l:p:h" opt; do
6465 case $opt in
6566 i ) image_flag=true; image_name=$OPTARG ;;
6667 a ) artifact_flag=true; artifact_dir=$OPTARG ;;
68+ r ) report_dir=$OPTARG ;;
6769 b ) buildspec=$OPTARG ;;
6870 c ) awsconfig_flag=true;;
6971 m ) mount_src_dir_flag=true;;
105107docker_command+=" \" IMAGE_NAME=$image_name \" -e \
106108 \" ARTIFACTS=$( allOSRealPath " $artifact_dir " ) \" "
107109
110+ if [ -n " $report_dir " ]
111+ then
112+ docker_command+=" -e \" REPORTS=$( allOSRealPath " $report_dir " ) \" "
113+ fi
114+
108115if [ -z " $source_dirs " ]
109116then
110117 docker_command+=" -e \" SOURCE=$( allOSRealPath " $PWD " ) \" "
You can’t perform that action at this time.
0 commit comments