Commit 10357cfc authored by Jan Kiene's avatar Jan Kiene
Browse files

use ci var to create the git clone URL

parent a31272de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
    - |
      if [[ "$IVAS_CODEC_CI_REF" == "" ]]; then echo "Error: IVAS_CODEC_CI_REF not set" && exit 1; fi
    # 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
    - git clone "$CI_PROJECT_URL".git && pushd ivas-codec-ci && git switch --detach "$IVAS_CODEC_CI_REF" && popd

.job-windows:
  tags:
@@ -19,7 +19,7 @@
      if (-not $env:IVAS_CODEC_CI_REF) { echo "Error: IVAS_CODEC_CI_REF not set" ; exit 1 }
    # 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
    - git clone $env:CI_PROJECT_URL.git; pushd ivas-codec-ci ; git switch --detach $env:IVAS_CODEC_CI_REF ; popd

.build-job-linux:
  stage: build