Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
project-template
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
郭燕飞
project-template
Commits
8039a4b1
Commit
8039a4b1
authored
Jul 08, 2019
by
郭燕飞
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sonar support
parent
38352a0b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
2 deletions
+100
-2
.gitlab-ci.yml
service-template/.gitlab-ci.yml
+37
-0
build.gradle
service-template/build.gradle
+13
-1
.gitlab-ci.yml
web-template/.gitlab-ci.yml
+37
-0
build.gradle
web-template/build.gradle
+13
-1
No files found.
service-template/.gitlab-ci.yml
0 → 100644
View file @
8039a4b1
sonarqube_feature_preview
:
script
:
-
git config --global user.email "sonar@duiba"
-
git config --global user.name "sonar"
-
gradle clean
-
export
-
gradle sonarqube -Dsonar.host.url=http://sonar.dui88.com -Dsonar.branch=dummy -Dsonar.login=reporter -Dsonar.password=duiba123456 -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -x test
stage
:
test
only
:
-
/^feature.*$/
tags
:
-
test
sonarqube_hotfix_preview
:
script
:
-
git config --global user.email "sonar@duiba"
-
git config --global user.name "sonar"
-
gradle clean
-
export
-
gradle sonarqube -Dsonar.host.url=http://sonar.dui88.com -Dsonar.branch=dummy -Dsonar.login=reporter -Dsonar.password=duiba123456 -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -x test
stage
:
test
only
:
-
/^(hotfix|release).*$/
tags
:
-
test
sonarqube_develop_preview
:
script
:
-
git config --global user.email "sonar@duiba"
-
git config --global user.name "sonar"
-
git checkout origin/develop
-
gradle clean
-
gradle sonarqube -Dsonar.host.url=http://sonar.dui88.com -Dsonar.login=reporter -Dsonar.password=duiba123456 -x test
only
:
-
develop
tags
:
-
test
service-template/build.gradle
View file @
8039a4b1
...
@@ -18,7 +18,19 @@ buildscript {
...
@@ -18,7 +18,19 @@ buildscript {
}
}
}
}
plugins
{
id
'org.sonarqube'
version
'2.5'
}
apply
plugin:
"org.sonarqube"
apply
plugin:
"org.sonarqube"
sonarqube
{
properties
{
property
"sonar.projectName"
,
"{artifactId}"
property
"sonar.projectKey"
,
"{groupId}:{artifactId}"
property
"sonar.sourceEncoding"
,
"utf-8"
property
"sonar.host.url"
,
"http://sonar.dui88.com"
}
}
allprojects
{
allprojects
{
apply
plugin:
"duiba.gradle.plugin"
apply
plugin:
"duiba.gradle.plugin"
apply
plugin:
"maven"
apply
plugin:
"maven"
...
@@ -50,7 +62,7 @@ subprojects {
...
@@ -50,7 +62,7 @@ subprojects {
dependencies
{
dependencies
{
imports
{
imports
{
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
4
2"
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
8
2"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
}
}
...
...
web-template/.gitlab-ci.yml
0 → 100644
View file @
8039a4b1
sonarqube_feature_preview
:
script
:
-
git config --global user.email "sonar@duiba"
-
git config --global user.name "sonar"
-
gradle clean
-
export
-
gradle sonarqube -Dsonar.host.url=http://sonar.dui88.com -Dsonar.branch=dummy -Dsonar.login=reporter -Dsonar.password=duiba123456 -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -x test
stage
:
test
only
:
-
/^feature.*$/
tags
:
-
test
sonarqube_hotfix_preview
:
script
:
-
git config --global user.email "sonar@duiba"
-
git config --global user.name "sonar"
-
gradle clean
-
export
-
gradle sonarqube -Dsonar.host.url=http://sonar.dui88.com -Dsonar.branch=dummy -Dsonar.login=reporter -Dsonar.password=duiba123456 -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME -x test
stage
:
test
only
:
-
/^(hotfix|release).*$/
tags
:
-
test
sonarqube_develop_preview
:
script
:
-
git config --global user.email "sonar@duiba"
-
git config --global user.name "sonar"
-
git checkout origin/develop
-
gradle clean
-
gradle sonarqube -Dsonar.host.url=http://sonar.dui88.com -Dsonar.login=reporter -Dsonar.password=duiba123456 -x test
only
:
-
develop
tags
:
-
test
web-template/build.gradle
View file @
8039a4b1
description
=
"{artifactId}"
description
=
"{artifactId}"
plugins
{
id
'org.sonarqube'
version
'2.5'
}
apply
plugin:
"org.sonarqube"
apply
plugin:
"org.sonarqube"
sonarqube
{
properties
{
property
"sonar.projectName"
,
"{artifactId}"
property
"sonar.projectKey"
,
"{groupId}:{artifactId}"
property
"sonar.sourceEncoding"
,
"utf-8"
property
"sonar.host.url"
,
"http://sonar.dui88.com"
}
}
buildscript
{
buildscript
{
ext
{
ext
{
springBootVersion
=
"1.5.16.RELEASE"
springBootVersion
=
"1.5.16.RELEASE"
...
@@ -63,7 +75,7 @@ dependencyManagement {
...
@@ -63,7 +75,7 @@ dependencyManagement {
dependencies
{
dependencies
{
imports
{
imports
{
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
4
2"
mavenBom
"cn.com.duiba.boot:spring-boot-ext-dependencies:1.2.2
8
2"
mavenBom
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
mavenBom
"org.springframework.cloud:spring-cloud-dependencies:Edgware.SR4"
}
}
...
...
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