Skip to content
Snippets Groups Projects

Clone the branch that triggered the pipeline

Merged Jack Robertson requested to merge feature/clone-current-branch into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -3,7 +3,7 @@
ssh git@gitlab.nexdev.uk
echo "Cloning 'git@gitlab.nexdev.uk:$CI_PROJECT_PATH.git'"
git clone "git@gitlab.nexdev.uk:$CI_PROJECT_PATH.git" -q > /dev/null
git clone -q -b "$CI_COMMIT_REF_NAME" "git@gitlab.nexdev.uk:$CI_PROJECT_PATH.git" > /dev/null
echo "Running standard version"
cd "$CI_PROJECT_NAME"
@@ -49,4 +49,4 @@ while :; do
done
# No flag passed, follow-tags instead
git push --follow-tags -o ci.skip
\ No newline at end of file
git push --follow-tags -o ci.skip
Loading