From 4b56278cf932d0f4d5a016021ff8e2d9c64df130 Mon Sep 17 00:00:00 2001 From: armab Date: Wed, 9 Mar 2016 16:32:11 +0200 Subject: [PATCH] Add support for st2-packages branching - Autodetect st2-packages branch automatically - Make sure to suppress `git checkout` error code to avoid race, when remote `st2-packages` branch wasn't yet created - Fall-back to `st2-packages` master if there is no `vX.Y` branch in packages --- circle.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index ec8cad1c96..7c819bd01a 100644 --- a/circle.yml +++ b/circle.yml @@ -39,7 +39,10 @@ machine: checkout: post: - - git clone --depth 1 ${ST2_PACKAGES_REPO} /home/ubuntu/st2/st2-packages + - | + git clone --depth 1 ${ST2_PACKAGES_REPO} /home/ubuntu/st2/st2-packages + cd /home/ubuntu/st2/st2-packages + git checkout ${CIRCLE_BRANCH} || true - .circle/buildenv.sh dependencies: