Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaocong
test
Commits
2480b8e3
Commit
2480b8e3
authored
Jun 05, 2023
by
wangxiaocong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ci
parent
34139477
Pipeline
#238
failed
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
.gitlab-ci.yml
.gitlab-ci.yml
+18
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
2480b8e3
example-sonar
:
stage
:
scanner
tags
:
-
gitlab-pos
only
:
# 仅检测master合并请求和master分支代码提交,sonarqube-ce版本只支持分析master分支
-
develop
#allow_failure: true
script
:
-
mvn clean verify -Dmaven.test.skip=true
-
mvn -e -X --batch-mode sonar:sonar
-Dsonar.host.url=http://127.0.0.1:9000
-Dsonar.host.login=admin
-Dsonar.host.password=admin
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
-Dsonar.gitlab.project_id=$CI_PROJECT_ID
-Dsonar.issuesReport.html.enable=true
-Dsonar.analysis.mode=preview
#设置后,sonar不创建项目,只做分析
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment