Skip to content

Commit 9f3c202

Browse files
authored
Merge pull request #4 from hungnt1412/fork/fix/codebuild
[update] codebuild - fix get latest build
2 parents 6919ef1 + 04a7558 commit 9f3c202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/codebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ aws_codebuild_list() {
77
aws_codebuild_get_latest_build() {
88
aws_codebuild_project_name=$1
99
echo Get the latest build of project ${aws_codebuild_project_name:?"aws_codebuild_project_name is unset or empty"}
10-
aws codebuild batch-get-builds --ids $(aws codebuild list-builds-for-project --project-name $aws_codebuild_project_name --query "*[] | [1]" --output text)
10+
aws codebuild batch-get-builds --ids $(aws codebuild list-builds-for-project --project-name $aws_codebuild_project_name --query "*[] | [0]" | tr -d \''"\')
1111
}
1212

1313
aws_codebuild_get_latest_build_with_hint() {

0 commit comments

Comments
 (0)