Skip to content

Commit

Permalink
[AZP] Limit the number of projects that can be built in a single go (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jan 31, 2020
1 parent 5b9b430 commit b1265e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
PROJECTS_ACCEPTED="${PROJECTS_ACCEPTED} ${PROJECT}"
done
if [[ -n "${PROJECTS_ACCEPTED}" ]]; then
if [[ $(echo "${PROJECTS_ACCEPTED}" | awk '{print NF}') -gt 5 ]]; then
echo "Too many projects requested"
exit 1
fi
# Pull down the latest source BB image, since we're gonna do some building
docker pull $(BINARYBUILDER_IMAGE_NAME)
Expand Down

0 comments on commit b1265e4

Please sign in to comment.