diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 250143317f84b57f453ef448fc16f60230db0768..778360b701c9467c510dd7914f37bb65f6f02c35 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,7 +58,7 @@ common:detector:
     - ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
     - ln -s "${LOCAL_DATA_PATH}/datasets/data" data
     - ls -lrtha
-    - curl -sL https://eicweb.phy.anl.gov/EIC/benchmarks/detector_benchmarks/-/jobs/artifacts/master/raw/results/emcal_barrel_calibration.json?job=collect_results:barrel_ecal --output config/emcal_barrel_calibration.json
+    - bash bin/get_calibrations
   interruptible: true
 
 include: 
diff --git a/bin/get_calibrations b/bin/get_calibrations
new file mode 100644
index 0000000000000000000000000000000000000000..57389c8e97117f9517ffde0a83823a9ac31dcc19
--- /dev/null
+++ b/bin/get_calibrations
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+branch=${1:-master}
+detector_benchmarks=https://eicweb.phy.anl.gov/EIC/benchmarks/detector_benchmarks/-/jobs/artifacts/${branch}/raw/
+
+mkdir -p config
+for i in results/emcal_barrel_calibration.json ; do
+  curl --fail -sL ${detector_benchmarks}/${i}?job=deploy_results --output config/$(basename ${i})
+done