File tree 2 files changed +9
-1
lines changed
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.
24
24
25
25
** Optional:**
26
26
-l Used to override the default local agent image.
27
+ -r Used to specify a report output directory.
27
28
-c Use the AWS configuration and credentials from your local host. This includes ~ /.aws and any AWS_ * environment variables.
28
29
-p Used to specify the AWS CLI Profile.
29
30
-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 {
35
35
echo " -a Used to specify an artifact output directory."
36
36
echo " Options:"
37
37
echo " -l IMAGE Used to override the default local agent image."
38
+ echo " -r Used to specify a report output directory."
38
39
echo " -s Used to specify source information. Defaults to the current working directory for primary source."
39
40
echo " * First (-s) is for primary source"
40
41
echo " * Use additional (-s) in <sourceIdentifier>:<sourceLocation> format for secondary source"
@@ -60,10 +61,11 @@ awsconfig_flag=false
60
61
mount_src_dir_flag=false
61
62
docker_privileged_mode_flag=false
62
63
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
64
65
case $opt in
65
66
i ) image_flag=true; image_name=$OPTARG ;;
66
67
a ) artifact_flag=true; artifact_dir=$OPTARG ;;
68
+ r ) report_dir=$OPTARG ;;
67
69
b ) buildspec=$OPTARG ;;
68
70
c ) awsconfig_flag=true;;
69
71
m ) mount_src_dir_flag=true;;
105
107
docker_command+=" \" IMAGE_NAME=$image_name \" -e \
106
108
\" ARTIFACTS=$( allOSRealPath " $artifact_dir " ) \" "
107
109
110
+ if [ -n " $report_dir " ]
111
+ then
112
+ docker_command+=" -e \" REPORTS=$( allOSRealPath " $report_dir " ) \" "
113
+ fi
114
+
108
115
if [ -z " $source_dirs " ]
109
116
then
110
117
docker_command+=" -e \" SOURCE=$( allOSRealPath " $PWD " ) \" "
You can’t perform that action at this time.
0 commit comments