Loading .gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -37,16 +37,16 @@ check-merged-ci-config-is-valid: # for testing - | curl -s -o /dev/null -w "%{http_code}\n" -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/49" curl -v -s -o /dev/null -w "%{http_code}\n" -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/49" - | echo '{"content":"stages: [test]"}' | curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Content-Type: application/json" "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint" - test_yml="$REPO-ci.yml" - curl --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - curl -v --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - cat $test_yml - | jq -n --arg yaml "$(<$test_yml)" '.content=$yaml' \ | curl -X POST \ | curl -v -X POST \ --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \ -H "Content-Type: application/json" \ -H "JOB-TOKEN: $CI_JOB_TOKEN" \ Loading Loading
.gitlab-ci.yml +3 −3 Original line number Diff line number Diff line Loading @@ -37,16 +37,16 @@ check-merged-ci-config-is-valid: # for testing - | curl -s -o /dev/null -w "%{http_code}\n" -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/49" curl -v -s -o /dev/null -w "%{http_code}\n" -H "JOB-TOKEN: $CI_JOB_TOKEN" "https://forge.3gpp.org/rep/api/v4/projects/49" - | echo '{"content":"stages: [test]"}' | curl -s -o /dev/null -w "%{http_code}\n" -X POST -H "Content-Type: application/json" "https://forge.3gpp.org/rep/api/v4/projects/49/ci/lint" - test_yml="$REPO-ci.yml" - curl --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - curl -v --url "$repo_url/./raw/main/.gitlab-ci.yml?inline=false" --output $test_yml - cat $test_yml - | jq -n --arg yaml "$(<$test_yml)" '.content=$yaml' \ | curl -X POST \ | curl -v -X POST \ --url "https://forge.3gpp.org/rep/api/v4/projects/$project_id/ci/lint?include_merged_yaml=true" \ -H "Content-Type: application/json" \ -H "JOB-TOKEN: $CI_JOB_TOKEN" \ Loading