diff --git a/buildconfig/Jenkins/doctests b/buildconfig/Jenkins/doctests index a87f7b9a87fae3b5326ebc2bfa88836f4019d6b8..0a71f60dbe3ac3f58c249ffc935aea55d11fef07 100755 --- a/buildconfig/Jenkins/doctests +++ b/buildconfig/Jenkins/doctests @@ -20,6 +20,16 @@ else fi $CMAKE_EXE --version +############################################################################### +# System discovery +############################################################################### +# Setup software collections on rhel7 to allow using gcc7 +if [[ ${NODE_LABELS} == *rhel7* ]] || [[ ${NODE_LABELS} == *centos7* ]] || [[ ${NODE_LABELS} == *scilin7* ]]; then + SCL_ENABLE="scl enable devtoolset-7" +else + SCL_ENABLE="eval" +fi + ##################################################################################### # Find and install package ##################################################################################### @@ -49,7 +59,7 @@ cd $BUILD_DIR # CMake configuration. We only need a minimal configuration as we will actually # just run from the package ############################################################################### -${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} .. +$SCL_ENABLE "${CMAKE_EXE} -DMANTID_DATA_STORE=${MANTID_DATA_STORE} .." ############################################################################### # Build step