Skip to content

Commit

Permalink
Merge pull request #127 from theserverlessway/feature/build-limits
Browse files Browse the repository at this point in the history
Fix issue when only a few builds are there
  • Loading branch information
flomotlik authored May 10, 2024
2 parents a43b5c6 + 0098053 commit 9cc843b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/commands/codebuild/builds.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ PROJECTS=$(awscli codebuild list-projects --output text --query "projects[$(auto

select_one Project "$PROJECTS"

BUILD_IDS=$(awscli codebuild list-builds-for-project --max-items "$MAX_BUILDS" --project-name "$SELECTED" --output text --query "ids[].[@]" | sed '$d' )
BUILD_IDS=$(awscli codebuild list-builds-for-project --max-items "$MAX_BUILDS" --project-name "$SELECTED" --output text --query "ids[].[@]" | sed 's/^None$//g')

awscli codebuild batch-get-builds --output table --query "reverse(builds)[$(auto_filter_joined id buildNumber currentPhase buildStatus -- "$SECOND_RESOURCE")].{
\"1.Id\":id,
\"2.Number\":buildNumber,
\"3.Phase\":currentPhase,
\"4.Status\":buildStatus,
\"5.StartedAt\":startTime,
\"6.FinishedAt\":endTime}" --ids $BUILD_IDS
\"6.FinishedAt\":endTime}" --ids $BUILD_IDS

0 comments on commit 9cc843b

Please sign in to comment.