Merged in feature/fixPlaceholder2 (pull request #979)
Updated feature> dev gate to print variables of echo statements * Updated feature> dev gate to print variables of echo statement * Reverted placeholder changes Approved-by: Sujit Deokar
This commit is contained in:
committed by
Sujit Deokar
parent
44cecb5d00
commit
3ccd901743
@@ -217,13 +217,13 @@ pipelines:
|
|||||||
TARGET_BRANCH="${BITBUCKET_PR_DESTINATION_BRANCH}"
|
TARGET_BRANCH="${BITBUCKET_PR_DESTINATION_BRANCH}"
|
||||||
# Gate: feature branches can only target dev
|
# Gate: feature branches can only target dev
|
||||||
ALLOWED="dev"
|
ALLOWED="dev"
|
||||||
echo "Source: $SOURCE_BRANCH"
|
echo "Source: ${SOURCE_BRANCH}"
|
||||||
echo "Target: $TARGET_BRANCH (allowed: $ALLOWED)"
|
echo "Target: ${TARGET_BRANCH} (allowed: ${ALLOWED})"
|
||||||
IFS=',' read -ra targets <<< "$ALLOWED"
|
IFS=',' read -ra targets <<< "$ALLOWED"
|
||||||
for t in "${targets[@]}"; do
|
for t in "${targets[@]}"; do
|
||||||
[ "${TARGET_BRANCH}" = "$t" ] && exit 0
|
[ "${TARGET_BRANCH}" = "$t" ] && exit 0
|
||||||
done
|
done
|
||||||
echo "BLOCKED: target must be one of: $ALLOWED"; exit 1
|
echo "BLOCKED: target must be one of: ${ALLOWED}"; exit 1
|
||||||
- step: *ai-code-review
|
- step: *ai-code-review
|
||||||
|
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
@@ -301,12 +301,12 @@ pipelines:
|
|||||||
# Gate: dev can only be promoted to stg
|
# Gate: dev can only be promoted to stg
|
||||||
ALLOWED="stg"
|
ALLOWED="stg"
|
||||||
echo "Source: $SOURCE_BRANCH"
|
echo "Source: $SOURCE_BRANCH"
|
||||||
echo "Target: $TARGET_BRANCH (allowed: $ALLOWED)"
|
echo "Target: ${TARGET_BRANCH} (allowed: ${ALLOWED})"
|
||||||
IFS=',' read -ra targets <<< "$ALLOWED"
|
IFS=',' read -ra targets <<< "$ALLOWED"
|
||||||
for t in "${targets[@]}"; do
|
for t in "${targets[@]}"; do
|
||||||
[ "${TARGET_BRANCH}" = "$t" ] && exit 0
|
[ "${TARGET_BRANCH}" = "$t" ] && exit 0
|
||||||
done
|
done
|
||||||
echo "BLOCKED: target must be one of: ${ALLOWED}"; exit 1
|
echo "BLOCKED: target must be one of: ${ALLOWED}"; exit 1
|
||||||
- step: *ai-code-review
|
- step: *ai-code-review
|
||||||
|
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user