fixed: use shallow clones on jenkins

This commit is contained in:
Arne Morten Kvarving 2016-04-06 10:10:23 +02:00
parent 2b9b1f8b05
commit 33bb10b98f

View File

@ -7,7 +7,7 @@ function build_opm_core {
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
@ -26,7 +26,7 @@ function build_opm_core {
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