mirror of
https://gitlab.com/components/sast.git
synced 2025-06-30 07:28:29 +02:00
Merge branch 'fix-ensure-brakeman-job-added-job' into 'main'
Fix ensure-brakeman-job-added job See merge request gitlab-components/sast!2
This commit is contained in:
commit
511d312b12
1 changed files with 3 additions and 3 deletions
|
@ -8,8 +8,8 @@ ensure-brakeman-job-added:
|
|||
script:
|
||||
- |
|
||||
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("brakeman-sast"))) | length'`
|
||||
if [ "$count" != "2" ]; then
|
||||
count=`curl --silent $route | jq 'map(select(.name | contains("brakeman-sast"))) | length'`
|
||||
if [ "$count" != "1" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -44,4 +44,4 @@ create-release:
|
|||
script: echo "Creating release $CI_COMMIT_TAG"
|
||||
release:
|
||||
tag_name: $CI_COMMIT_TAG
|
||||
description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"
|
||||
description: "Release $CI_COMMIT_TAG of components repository $CI_PROJECT_PATH"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue