Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
print-demo
Overview
Overview
Details
Activity
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
Administrator
print-demo
Commits
c7923da1
Commit
c7923da1
authored
Apr 23, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!1
parents
43aaae1b
ad3679f2
Pipeline
#24
passed with stage
in 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
ci/sonar_preview.sh
+2
-1
src/main/java/com/zhiweidata/printdemo/PrintDemoApplication.java
+4
-0
No files found.
ci/sonar_preview.sh
View file @
c7923da1
...
...
@@ -7,7 +7,8 @@ mvn --batch-mode verify sonar:sonar \
-Dsonar
.analysis.mode
=
preview
\
-Dsonar
.gitlab.project_id
=
$CI_PROJECT_ID
\
-Dsonar
.gitlab.commit_sha
=
$CI_COMMIT_SHA
\
-Dsonar
.gitlab.ref_name
=
$CI_COMMIT_REF_NAME
-Dsonar
.gitlab.ref_name
=
$CI_COMMIT_REF_NAME
\
clean install
if
[
$?
-eq
0
]
;
then
echo
"sonarqube code-analyze-preview over."
...
...
src/main/java/com/zhiweidata/printdemo/PrintDemoApplication.java
View file @
c7923da1
...
...
@@ -14,6 +14,10 @@ public class PrintDemoApplication {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
PrintDemoApplication
.
class
,
args
);
asdfasdf
String
txt
=
"Hello world"
;
System
.
out
.
println
(
txt
.
substring
(
15
));
int
result
=
1
/
0
;
int
i
=
0
;
while
(
true
){
logger
.
info
(
"ceshi "
+
i
++);
...
...
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