File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sonarqube Standard Scan
2+ agent :
3+ type : Unity::metal::macmini
4+ image : package-ci/mac
5+ flavor : m1.mac
6+ variables :
7+ SONARQUBE_PROJECT_KEY : ai-robotics-endpoint-ros2
8+ commands :
9+ - curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-macosx.zip -o sonar-scanner-macosx.zip -L
10+ - unzip sonar-scanner-macosx.zip -d ~/sonar-scanner
11+ - ~/sonar-scanner/sonar-scanner-4.6.2.2472-macosx/bin/sonar-scanner -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONARQUBE_ENDPOINT_URL_PRD -Dsonar.login=$SONARQUBE_TOKEN_PRD
12+ triggers :
13+ cancel_old_ci : true
14+ expression : |
15+ ((pull_request.target eq "main" OR pull_request.target eq "dev-ros2")
16+ AND NOT pull_request.push.changes.all match "**/*.md") OR
17+ (push.branch eq "main" OR push.branch eq "dev-ros2")
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1212
1313### Added
1414
15+ Added Sonarqube scanner
16+
1517### Changed
1618
1719### Deprecated
You can’t perform that action at this time.
0 commit comments