Newer
Older
#!/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})
if [[ "$?" -ne "0" ]] ; then
echo "Error: could not retrieve calibrations!"
exit 1
fi