From 4becc05314bdb78118ca58e0da8b1b97cdc36e42 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 6 Apr 2016 10:15:46 +0200 Subject: [PATCH] fixed: use shallow clones on jenkins --- jenkins/build-opm-autodiff.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jenkins/build-opm-autodiff.sh b/jenkins/build-opm-autodiff.sh index 901749ac8..f6b23c31f 100755 --- a/jenkins/build-opm-autodiff.sh +++ b/jenkins/build-opm-autodiff.sh @@ -7,7 +7,7 @@ function build_opm_autodiff { cd $WORKSPACE/deps/ert git init . git remote add origin https://github.com/Ensembles/ert - git fetch origin $ERT_REVISION:branch_to_build + git fetch --depth 1 origin $ERT_REVISION:branch_to_build test $? -eq 0 || exit 1 git checkout branch_to_build popd @@ -25,7 +25,7 @@ function build_opm_autodiff { cd $WORKSPACE/deps/opm-common git init . git remote add origin https://github.com/OPM/opm-common - git fetch origin $OPM_COMMON_REVISION:branch_to_build + git fetch --depth 1 origin $OPM_COMMON_REVISION:branch_to_build test $? -eq 0 || exit 1 git checkout branch_to_build popd @@ -35,27 +35,34 @@ function build_opm_autodiff { mkdir serial/build-opm-common cd serial/build-opm-common build_module "-DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install" 0 $WORKSPACE/deps/opm-common + test $? -eq 0 || exit 1 popd # Build opm-parser clone_and_build_module opm-parser "-DCMAKE_PREFIX_PATH=$WORKSPACE/serial/install -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install" $OPM_PARSER_REVISION $WORKSPACE/serial + test $? -eq 0 || exit 1 # Build opm-material clone_and_build_module opm-material "-DCMAKE_PREFIX_PATH=$WORKSPACE/serial/install -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install" $OPM_MATERIAL_REVISION $WORKSPACE/serial + test $? -eq 0 || exit 1 # Build opm-core clone_and_build_module opm-core "-DCMAKE_PREFIX_PATH=$WORKSPACE/serial/install -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install" $OPM_CORE_REVISION $WORKSPACE/serial + test $? -eq 0 || exit 1 # Build dune-cornerpoint clone_and_build_module dune-cornerpoint "-DCMAKE_PREFIX_PATH=$WORKSPACE/serial/install -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install" $DUNE_CORNERPOINT_REVISION $WORKSPACE/serial + test $? -eq 0 || exit 1 # Build opm-output clone_and_build_module opm-output "-DCMAKE_PREFIX_PATH=$WORKSPACE/serial/install -DCMAKE_INSTALL_PREFIX=$WORKSPACE/serial/install" $OPM_OUTPUT_REVISION $WORKSPACE/serial + test $? -eq 0 || exit 1 # Build opm-autodiff pushd . mkdir serial/build-opm-autodiff cd serial/build-opm-autodiff build_module "-DCMAKE_PREFIX_PATH=$WORKSPACE/serial/install" 1 $WORKSPACE + test $? -eq 0 || exit 1 popd }