Loading .gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -35,10 +35,10 @@ 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 # 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 - test_yml="$REPO-ci.yml" - curl --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - | jq -n --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ jq -n --arg yaml "$(<$test_yml)" '.content=$yaml' \ | curl -X POST \ --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \ -H "Content-Type: application/json" \ Loading @@ -48,7 +48,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 -n --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ jq -n --arg yaml "$(<$test_yml)" '.content=$yaml' \ | curl -X POST \ --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \ -H "Content-Type: application/json" \ Loading Loading
.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -35,10 +35,10 @@ 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 # 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 - test_yml="$REPO-ci.yml" - curl --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - | jq -n --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ jq -n --arg yaml "$(<$test_yml)" '.content=$yaml' \ | curl -X POST \ --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \ -H "Content-Type: application/json" \ Loading @@ -48,7 +48,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 -n --arg yaml "$(<$REPO/.gitlab-ci.yml)" '.content=$yaml' \ jq -n --arg yaml "$(<$test_yml)" '.content=$yaml' \ | curl -X POST \ --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \ -H "Content-Type: application/json" \ Loading