diff options
author | Daniel Firth <dan.firth@codethink.co.uk> | 2016-12-09 12:15:25 +0000 |
---|---|---|
committer | GitLab <gitlab@gitlab.com> | 2016-12-12 11:34:02 +0000 |
commit | b78bad6ab31d3e6d3351070c847dc8ce05e21069 (patch) | |
tree | dbdd9369cffcd6097b92fb1f4c23a0e77e11614f /.gitlab-ci.yml | |
parent | 6ded8a722ba602fc16812137e60282c0d6eb243e (diff) | |
download | definitions-b78bad6ab31d3e6d3351070c847dc8ce05e21069.tar.gz |
Add shortcut for checking ybd branches.
Branches that follow the pattern "staging/fromybd/$1" will `git checkout ybd -b $1`
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 3 |
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: |