summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-07-05 12:16:55 -0300
committerKali Kaneko <kali@leap.se>2017-07-07 21:25:21 +0200
commitcc499a407fe41c635e2317021acce05ae957ab3a (patch)
tree14af201291049931c052cc86ce4e7e4a8d2b967e
parentda7745639bb7d38e25c7c0f0e1e405cb4c3f4c7e (diff)
[benchmarks] use new gitlab ci variable names
-rw-r--r--.gitlab-ci.yml7
1 files changed, 5 insertions, 2 deletions
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.