PromucFlow_constructor/ci/common/extra-env.sh

9 lines
338 B
Bash
Raw Normal View History

2021-07-08 10:56:01 +00:00
# This script should be idempotent. Meaning, sourcing it multiple times shouldn't cause problems.
set -o errexit
set -o xtrace
# Replace `/` characters to `--` in the initiator.
# Sample CODEBUILD_INITIATOR: `codebuild-appsmith-ce-service-role/AWSCodeBuild-146ccba7-69a4-42b1-935b-e5ea50fc7535`
BATCH_ID="${CODEBUILD_INITIATOR//\//--}"