From a9174f0bccc3aa67babb84c054589510fb122e1b Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sat, 24 Jul 2021 03:28:07 -0500
Subject: [PATCH] Added COMMON_BENCH_VERSION

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8698f028..13f7dd37 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,12 @@ 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
+      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