From 7620af7e561f67920081cd48b37c3f94362304a1 Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sat, 24 Jul 2021 21:03:09 -0500
Subject: [PATCH] Using COMMON_BENCH_VERSION

---
 .gitlab-ci.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 251e3cd9..f5c09298 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,7 +30,13 @@ stages:
 common:setup:
   stage: config
   before_script:
-    - git clone https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup 
+    - |
+      if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then
+        export COMMON_BENCH_VERSION="master" 
+      fi
+        export COMMON_BENCH_VERSION="docs" 
+      echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}" 
+      git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup 
   script:
     - source setup/bin/env.sh && ./setup/bin/install_common.sh
 
-- 
GitLab