File tree 1 file changed +1
-1
lines changed
.gitlab/kernel_matrix_testing
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 218
218
# setup_env job hasn't finished. This causes instances to be leftover for more time than necessary.
219
219
- inv kmt.wait-for-setup-job --pipeline-id $CI_PIPELINE_ID --arch $ARCH --component $TEST_COMPONENT
220
220
- aws ec2 describe-instances --filters $FILTER_TEAM $FILTER_MANAGED $FILTER_PIPELINE $FILTER_ARCH $FILTER_INSTANCE_TYPE $FILTER_TEST_COMPONENT --output json --query $QUERY_INSTANCE_IDS | tee -a instance.json
221
- - cat instance.json | jq -r 'map(.[]) | .[]' | grep -v "null" | xargs -n 1 -t aws ec2 terminate-instances --instance-ids
221
+ - cat instance.json | jq -r 'map(.[]) | .[]' | grep -v "null" | xargs --no-run-if-empty - n 1 -t aws ec2 terminate-instances --instance-ids
222
222
after_script :
223
223
- DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_API_KEY_ORG2 token) || exit $?; export DD_API_KEY
224
224
- !reference [.tag_kmt_ci_job]
You can’t perform that action at this time.
0 commit comments