diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef75a45b..91e92ae2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,9 +33,6 @@ stages: IMAGE_DIR: $CI_PROJECT_DIR/work/build/tmp/deploy/images TOOLCHAIN_LINK_DIR: $CI_PROJECT_DIR/work/build/toolchains before_script: - - echo KAS_WORK_DIR = $KAS_WORK_DIR - - echo SSTATE_DIR = $SSTATE_DIR - - echo DL_DIR = $DL_DIR - rm -rf $KAS_WORK_DIR - mkdir --verbose --parents $KAS_WORK_DIR $KAS_REPO_REF_DIR $SSTATE_DIR $DL_DIR $TOOLCHAIN_DIR $TOOLCHAIN_LINK_DIR # Must do this here, as it's the only way to make sure the toolchain is installed on the same builder @@ -79,6 +76,8 @@ update-repos: - | exit_code=0 + printenv + if [ -n "$KAS_REPO_REF_DIR" ]; then flock --verbose --timeout 60 $KAS_REPO_REF_DIR --command ./ci/update-repos || exit_code=$? # Exit now if that failed, unless the status was 128 (fetch failed)