From cc499a407fe41c635e2317021acce05ae957ab3a Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 5 Jul 2017 12:16:55 -0300 Subject: [benchmarks] use new gitlab ci variable names --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33639878..03af5822 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,8 +71,11 @@ benchmark: # By default, gitlab-runner will checkout in a detached HEAD # (see https://gitlab.com/gitlab-org/gitlab-ce/issues/19421) # We want pytest-benchmark to report the proper branch name, - # so we make sure we stay at the current branch - - git checkout -B "$CI_BUILD_REF_NAME" "$CI_BUILD_REF" + # so we make sure we stay at the current branch. + # Also, variable names have changed in latest version of gitlab, + # but the doc seems to be outdated (see also + # https://docs.gitlab.com/ce/ci/variables/README.html). + - git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_REF" # Gitlab will checkout current revision as master / origin/master # We need some files from the "furure" in order to post the right # benchmarking data to elasticsearch. -- cgit v1.2.3