Browse Source

remove set -e for cherry-pick script since we collect errors (#8177)

pull/8182/head
Alvin Huang 4 years ago committed by GitHub
parent
commit
2a95289f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .circleci/scripts/cherry-picker.sh

8
.circleci/scripts/cherry-picker.sh

@ -7,7 +7,7 @@
# Requires $CIRCLE_PROJECT_USERNAME, $CIRCLE_PROJECT_REPONAME, and $CIRCLE_SHA1 from CircleCI
set -e -o pipefail
set -o pipefail
# colorized status prompt
function status {
@ -135,17 +135,17 @@ for label in $labels; do
status "backporting to stable-website"
branch="stable-website"
cherry_pick_with_slack_notification "$branch" "$CIRCLE_SHA1" "$pr_url"
(( backport_failures += "$?" ))
backport_failures=$((backport_failures + "$?"))
# else if the label matches backport/*, it will attempt to cherry-pick to the release branch
elif [[ $label =~ backport/* ]]; then
status "backporting to $label"
branch="${label/backport/release}.x"
cherry_pick_with_slack_notification "$branch" "$CIRCLE_SHA1" "$pr_url"
(( backport_failures += "$?" ))
backport_failures=$((backport_failures + "$?"))
fi
done
if [ "$backport_failures" -ne 0 ]; then
echo "$backport_failures backports failed"
exit $backport_failures
exit 1
fi
Loading…
Cancel
Save