summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2016-12-09 12:15:25 +0000
committerDaniel Firth <dan.firth@codethink.co.uk>2016-12-10 17:39:28 +0000
commit93908b03f5c2f5b24de7ff901b5be3cd140d8a86 (patch)
tree1513b90708573060d904c1e46a5c487dad50810c
parent80ddd0ac5a6ae532b24355f00f8799f00c02c825 (diff)
downloaddefinitions-staging/fromybd/lc/extensionsdebug.tar.gz
Add shortcut for checking ybd branches.staging/fromybd/lc/extensionsdebug
Branches that follow the pattern "staging/fromybd/$1" will `git checkout ybd -b $1`
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9245c981..d63b33c2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,8 @@ stages:
before_script:
- export LC_ALL="C.UTF-8"
- apt-get update -qq && apt-get install -y -qq git
- - git clone https://gitlab.com/baserock/ybd.git
+ - export CI_YBD_BRANCH=`[[ "$CI_BUILD_REF_NAME" =~ ^staging/fromybd/ ]] && echo -b ${CI_BUILD_REF_NAME#staging/fromybd/}`
+ - git clone https://gitlab.com/baserock/ybd.git $CI_YBD_BRANCH
- cd ybd && ./install_dependencies.sh && cd ..
build-system-x86_64-chroot-build: