Commit 2480b8e3 authored by wangxiaocong's avatar wangxiaocong

add ci

parent 34139477
Pipeline #238 failed
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment