Commit 21175e9 1 parent 8da62d4 commit 21175e9 Copy full SHA for 21175e9
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,20 @@ BUILDS=(
32
32
)
33
33
34
34
usage () {
35
- echo " start_codebuild.sh <source_version>"
35
+ echo " start_codebuild.sh <source_version> <repo> "
36
36
echo " example: start_codebuild.sh pr/1111"
37
- echo " example: start_codebuild.sh test_branch"
38
37
echo " example: start_codebuild.sh 1234abcd"
38
+ echo " example: start_codebuild.sh test_branch lrstewart/s2n"
39
39
}
40
40
41
- if [ " $# " -ne " 1" ]; then
41
+ if [ " $# " -lt " 1" ]; then
42
42
usage
43
43
# Return instead of exit so we can `source` this script
44
44
# in order to get access to BUILDS.
45
45
return 1
46
46
fi
47
47
SOURCE_VERSION=$1
48
+ REPO=${2:- aws/ s2n-tls}
48
49
49
50
add_command () {
50
51
NAME=$1
@@ -55,8 +56,9 @@ add_command() {
55
56
if [ " $BATCH " = " no-batch" ]; then
56
57
START_COMMAND=" start-build"
57
58
fi
58
- COMMANDS+=(" aws --region $REGION codebuild $START_COMMAND --source-version $SOURCE_VERSION
59
- --project-name $NAME " )
59
+ COMMANDS+=(" aws --region $REGION codebuild $START_COMMAND --project-name $NAME
60
+ --source-location-override https://github.com/$REPO
61
+ --source-version $SOURCE_VERSION " )
60
62
}
61
63
62
64
for args in " ${BUILDS[@]} " ; do
You can’t perform that action at this time.
0 commit comments