Commit 26c825e3 authored by Jan Kiene's avatar Jan Kiene
Browse files

skip LFS files in cloning + fix curl URL with project id

parent d4b75f07
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -35,10 +35,11 @@ check-merged-ci-config-is-valid:
    - if [ "$REPO" == "ivas-codec" ]; then repo_url=$REPO_URL_FLOAT; project_id=$PROJECT_ID_FLOAT; fi
    - if [ "$REPO" == "ivas-basop" ]; then repo_url=$REPO_URL_BASOP; project_id=$PROJECT_ID_BASOP; fi

    - git clone -b main --single-branch $repo_url $REPO
    # we only want the yaml file, skip LFS files for speedup
    - GIT_LFS_SKIP_SMUDGE=1 git clone -b main --single-branch $repo_url $REPO
    - |
      jq --null-input --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \
      | curl --url "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint?include_merged_yaml=true" \
      | curl --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \
           --header 'Content-Type: application/json' \
           --output $BASELINE_YAML \
           --data @-
@@ -46,7 +47,7 @@ check-merged-ci-config-is-valid:
    - sed -i".bak" "s/\&IVAS_CODEC_CI_REF main/\&IVAS_CODEC_CI_REF ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}/" $REPO/.gitlab-ci.yml
    - |
      jq --null-input --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \
      | curl --url "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint?include_merged_yaml=true" \
      | curl --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \
           --header 'Content-Type: application/json' \
           --output $MERGED_YAML \
           --data @-