Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Define JOB_GCS_BUCKET_INTERNAL always
  • Loading branch information
mrodm committed Jul 23, 2025
commit d2142712eebbdcc077d4e9e64db5a6457eb50595
23 changes: 1 addition & 22 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,7 @@ export CREATED_DATE
export TMP_FOLDER_TEMPLATE_BASE="tmp.${REPO}"
export TMP_FOLDER_TEMPLATE="${TMP_FOLDER_TEMPLATE_BASE}.XXXXXXXXX"

is_step_required_to_upload_safe_logs() {
if [[ "$BUILDKITE_PIPELINE_SLUG" != "elastic-package" && "$BUILDKITE_PIPELINE_SLUG" != "elastic-package-test-serverless" ]]; then
return 1
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-package" ]]; then
if [[ "$BUILDKITE_STEP_KEY" =~ ^integration-parallel || "$BUILDKITE_STEP_KEY" =~ ^integration-false_positives ]]; then
return 0
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-package-test-serverless" ]]; then
if [[ "$BUILDKITE_STEP_KEY" == "test-serverless" ]]; then
return 0
fi
fi
return 1
}

if is_step_required_to_upload_safe_logs; then
export JOB_GCS_BUCKET_INTERNAL="ecosystem-ci-internal"
fi
export JOB_GCS_BUCKET_INTERNAL="ecosystem-ci-internal"

if [[ "${BUILDKITE_PIPELINE_SLUG}" == "elastic-package-test-serverless" ]]; then
if [[ "${BUILDKITE_STEP_KEY}" == "test-serverless" ]]; then
Expand Down