Commit b509ad00 authored by Clemens Lange's avatar Clemens Lange
Browse files

Install base CMSSW release first in case of patch release

parent db67fb4a
...@@ -40,7 +40,13 @@ RUN wget -O /opt/cms/bootstrap.sh http://cmsrep.cern.ch/cmssw/repos/bootstra ...@@ -40,7 +40,13 @@ RUN wget -O /opt/cms/bootstrap.sh http://cmsrep.cern.ch/cmssw/repos/bootstra
&& tar -xzf master.tar.gz \ && tar -xzf master.tar.gz \
&& mv siteconf-master SITECONF; \ && mv siteconf-master SITECONF; \
fi \ fi \
&& /opt/cms/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw+${CMSSW_VERSION%_p*} \ && if [[ $CMSSW_VERSION = *"patch"* ]]; \
then \
export BASE_VERSION=$(echo "${CMSSW_VERSION}"| cut -d '_' -f -4); \
else \
export BASE_VERSION=${CMSSW_VERSION}; \
fi \
&& /opt/cms/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw+${BASE_VERSION} \
&& if [[ $CMSSW_VERSION = *"patch"* ]]; \ && if [[ $CMSSW_VERSION = *"patch"* ]]; \
then \ then \
/opt/cms/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw-patch+${CMSSW_VERSION}; \ /opt/cms/common/cmspkg -a ${SCRAM_ARCH} install -y cms+cmssw-patch+${CMSSW_VERSION}; \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment