Loading includes/job-templates.yml +5 −2 Original line number Diff line number Diff line Loading @@ -8,7 +8,8 @@ before_script: - | if [[ "$IVAS_CODEC_CI_REF" == "" ]]; then echo "Error: IVAS_CODEC_CI_REF not set" && exit 1; fi - git clone "$CI_SERVER_URL"/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch "$IVAS_CODEC_CI_REF" # note: git clone -b does not work with SHA refs, hence using the safe way of a full clone and git switch - git clone "$CI_SERVER_URL"/ivas-codec-pc/ivas-codec-ci.git && pushd ivas-codec-ci && git switch --detach "$IVAS_CODEC_CI_REF" && popd .job-windows: tags: Loading @@ -16,7 +17,9 @@ before_script: - | if (-not $env:IVAS_CODEC_CI_REF) { echo "Error: IVAS_CODEC_CI_REF not set" ; exit 1 } - git clone $env:CI_SERVER_URL/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch $env:IVAS_CODEC_CI_REF # note: git clone -b does not work with SHA refs, hence using the safe way of a full clone and git switch # also, we cannot use && with powershell < 7 unfortunately, hence we cannot reliably detect if the snippet fails - git clone $env:CI_SERVER_URL/ivas-codec-pc/ivas-codec-ci.git; pushd ivas-codec-ci ; git switch --detach $env:IVAS_CODEC_CI_REF ; popd .build-job-linux: stage: build Loading Loading
includes/job-templates.yml +5 −2 Original line number Diff line number Diff line Loading @@ -8,7 +8,8 @@ before_script: - | if [[ "$IVAS_CODEC_CI_REF" == "" ]]; then echo "Error: IVAS_CODEC_CI_REF not set" && exit 1; fi - git clone "$CI_SERVER_URL"/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch "$IVAS_CODEC_CI_REF" # note: git clone -b does not work with SHA refs, hence using the safe way of a full clone and git switch - git clone "$CI_SERVER_URL"/ivas-codec-pc/ivas-codec-ci.git && pushd ivas-codec-ci && git switch --detach "$IVAS_CODEC_CI_REF" && popd .job-windows: tags: Loading @@ -16,7 +17,9 @@ before_script: - | if (-not $env:IVAS_CODEC_CI_REF) { echo "Error: IVAS_CODEC_CI_REF not set" ; exit 1 } - git clone $env:CI_SERVER_URL/ivas-codec-pc/ivas-codec-ci.git --depth 1 --branch $env:IVAS_CODEC_CI_REF # note: git clone -b does not work with SHA refs, hence using the safe way of a full clone and git switch # also, we cannot use && with powershell < 7 unfortunately, hence we cannot reliably detect if the snippet fails - git clone $env:CI_SERVER_URL/ivas-codec-pc/ivas-codec-ci.git; pushd ivas-codec-ci ; git switch --detach $env:IVAS_CODEC_CI_REF ; popd .build-job-linux: stage: build Loading