CI: Drop SonarQube and Schutzbot in favor of Snyk (HMS-3696)
Snyk is now being used for code analysis in favor of Sonarqube. This commit drops Sonarqube. Schutzbot was only neccessary for running SonarQube, so it has also been dropped.
This commit is contained in:
parent
97b7aa6bfd
commit
32b936d4c6
6 changed files with 0 additions and 127 deletions
|
|
@ -1,29 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "start" ]]; then
|
||||
GITHUB_NEW_STATE="pending"
|
||||
GITHUB_NEW_DESC="I'm currently testing this commit, be patient."
|
||||
elif [[ $1 == "finish" ]]; then
|
||||
GITHUB_NEW_STATE="success"
|
||||
GITHUB_NEW_DESC="I like this commit!"
|
||||
elif [[ $1 == "update" ]]; then
|
||||
if [[ $CI_JOB_STATUS == "canceled" ]]; then
|
||||
GITHUB_NEW_STATE="failure"
|
||||
GITHUB_NEW_DESC="Someone told me to cancel this test run."
|
||||
elif [[ $CI_JOB_STATUS == "failed" ]]; then
|
||||
GITHUB_NEW_STATE="failure"
|
||||
GITHUB_NEW_DESC="I'm sorry, something is odd about this commit."
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
echo "unknown command"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl \
|
||||
-u "${SCHUTZBOT_LOGIN}" \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
"https://api.github.com/repos/RedHatInsights/image-builder-frontend/statuses/${CI_COMMIT_SHA}" \
|
||||
-d '{"state":"'"${GITHUB_NEW_STATE}"'", "description": "'"${GITHUB_NEW_DESC}"'", "context": "Schutzbot on GitLab", "target_url": "'"${CI_PIPELINE_URL}"'"}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue