Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: codebuild cleanup script for stale resources #13006

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions codebuild_specs/aggregate_e2e_reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ phases:
- ts-node ./wait-for-all-codebuild.ts $CODEBUILD_RESOLVED_SOURCE_VERSION ../$WAIT_FOR_IDS_FILE_PATH $PROJECT_NAME
- cd ..
- source ./shared-scripts.sh && _downloadReportsFromS3 $CODEBUILD_SOURCE_VERSION
- mkdir artifacts && echo "empty artifact" > artifacts/empty-artifact.txt
reports:
e2e-reports:
files:
- '*.xml'
file-format: 'JUNITXML'
base-directory: '$CODEBUILD_SRC_DIR/aggregate_reports'
artifacts:
files:
- 'artifacts/*'
3 changes: 2 additions & 1 deletion codebuild_specs/cleanup_resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ env:
phases:
build:
commands:
- echo cleanup running
- npm install -g ts-node
- source ./shared-scripts.sh && _cleanUpResources
4 changes: 4 additions & 0 deletions codebuild_specs/e2e_workflow_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,7 @@ batch:
compute-type: BUILD_GENERAL1_LARGE
depend-on:
- upb
- identifier: cleanup_resources
buildspec: codebuild_specs/cleanup_resources.yml
depend-on:
- aggregate_e2e_reports
Loading