Enable CI job to check for brakeman-sast job

This commit is contained in:
Fabio Pitino 2023-05-03 17:07:29 +01:00
parent 3f7a876f43
commit c00f9059e9

View file

@ -3,15 +3,15 @@ include:
stages: [test, release] stages: [test, release]
# ensure-jobs-added: ensure-brakeman-job-added:
# image: badouralix/curl-jq image: badouralix/curl-jq
# script: script:
# - | - |
# route="https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs" route="https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines/$CI_PIPELINE_ID/jobs"
# count=`curl --silent --header "PRIVATE-TOKEN: $API_TOKEN" $route | jq 'map(select(.name | contains("component-job-"))) | length'` count=`curl --silent --header "PRIVATE-TOKEN: $API_TOKEN" $route | jq 'map(select(.name | contains("brakeman-sast"))) | length'`
# if [ "$count" != "2" ]; then if [ "$count" != "2" ]; then
# exit 1 exit 1
# fi fi
# Ensure that a project description exists, because it will be important to display # Ensure that a project description exists, because it will be important to display
# the resource in the catalog. # the resource in the catalog.