File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ jobs:
211211 export IMAGE_TAG=$([[ "$CIRCLE_BRANCH" == "staging" ]] && echo "staging-candidate" || echo "discardable") &&
212212 export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=snyk/kubernetes-monitor:${IMAGE_TAG}-${CIRCLE_SHA1} &&
213213 docker pull ${KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG} &&
214- .circleci/do-exclusively --branch staging npm run test:integration:eks
214+ .circleci/do-exclusively --branch staging --job ${CIRCLE_JOB} npm run test:integration:eks
215215 - run :
216216 name : Notify Slack on failure
217217 command : |
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ parse_args() {
88 case $1 in
99 -b|--branch) branch=" $2 " ;;
1010 -t|--tag) tag=" $2 " ;;
11+ -j|--job) job=" $2 " ;;
1112 * ) break ;;
1213 esac
1314 shift 2
@@ -43,6 +44,10 @@ make_jq_prog() {
4344 jq_filters+=" and (.subject | contains(\" [$tag ]\" ))"
4445 fi
4546
47+ if [[ $job ]]; then
48+ jq_filters+=" and .workflows.job_name == \" $job \" "
49+ fi
50+
4651 jq_prog=" .[] | select(.build_num < $CIRCLE_BUILD_NUM and (.status | test(\" running|pending|queued\" )) $jq_filters ) | .build_num"
4752}
4853
@@ -55,7 +60,7 @@ set -o pipefail
5560 branch=" "
5661 tag=" "
5762 rest=()
58- api_url=" https://circleci.com/api/v1/project/$CIRCLE_PROJECT_USERNAME /$CIRCLE_PROJECT_REPONAME ?circle-token=$CIRCLE_TOKEN &limit=100"
63+ api_url=" https://circleci.com/api/v1.1 /project/gh /$CIRCLE_PROJECT_USERNAME /$CIRCLE_PROJECT_REPONAME ?circle-token=$CIRCLE_TOKEN &limit=100"
5964
6065 parse_args " $@ "
6166 commit_message=$( git log -1 --pretty=%B)
You can’t perform that action at this time.
0 commit comments