-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'feature-sonarqube-drone' into main
- adds a drone pipeline that triggers analysis on a sonarqube server - https://codeberg.org/flyingfishflash/ledger/pulls/12
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
exitcode=0 | ||
|
||
case $SONAR_HOST in | ||
(*[![:blank:]]*) | ||
echo '$SONAR_HOST is not blank';; | ||
(*) | ||
echo '$SONAR_HOST contains only blanks or is empty or is unset' | ||
exitcode=1;; | ||
esac | ||
|
||
case $SONAR_LOGIN in | ||
(*[![:blank:]]*) | ||
echo '$SONAR_LOGIN is not blank';; | ||
(*) | ||
echo '$SONAR_LOGIN contains only blanks or is empty or is unset' | ||
exitcode=1;; | ||
esac | ||
|
||
case $SONAR_PROJECT_KEY in | ||
(*[![:blank:]]*) | ||
echo '$SONAR_PROJECT_KEY is not blank';; | ||
(*) | ||
echo '$SONAR_PROJECT_KEY contains only blanks or is empty or is unset' | ||
exitcode=1;; | ||
esac | ||
|
||
exit $exitcode |