Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nmaas Janitor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nmaas
nmaas Janitor
Commits
8b2f8314
Commit
8b2f8314
authored
4 months ago
by
Lukasz Lopatowski
Browse files
Options
Downloads
Patches
Plain Diff
Added sonar scan CI job
parent
b8b3ef3f
No related branches found
No related tags found
No related merge requests found
Pipeline
#92624
passed
4 months ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
sonar-project.properties
+15
-0
15 additions, 0 deletions
sonar-project.properties
with
27 additions
and
0 deletions
.gitlab-ci.yml
+
12
−
0
View file @
8b2f8314
...
...
@@ -28,6 +28,18 @@ test:
protoc/bin/protoc --proto_path=api/proto/v1 --proto_path=third_party --go_out=plugins=grpc:pkg/api/v1 config-service.proto
go test ./...
sonar
:
stage
:
test
image
:
name
:
sonarsource/sonar-scanner-cli:latest
entrypoint
:
[
"
"
]
only
:
-
develop
-
/^release/
script
:
-
sonar-scanner -Dsonar.host.url=${SONAR_HOST} -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.projectName=${SONAR_PROJECT_NAME} -Dsonar.branch.name=${CI_COMMIT_BRANCH} -Dsonar.login=${SONAR_LOGIN_TOKEN}
allow_failure
:
true
build_and_push_latest_image
:
stage
:
build
only
:
...
...
This diff is collapsed.
Click to expand it.
sonar-project.properties
0 → 100644
+
15
−
0
View file @
8b2f8314
# must be unique in a given SonarQube instance
#sonar.projectKey=my:project
# --- optional properties ---
# defaults to project key
#sonar.projectName=My project
# defaults to 'not provided'
#sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Defaults to .
#sonar.sources=.
# Encoding of the source code. Default is default system encoding
#
sonar.sourceEncoding
=
UTF-8
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment