Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
global-jenkinsfile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
global-jenkinsfile
Commits
273334d0
Commit
273334d0
authored
May 14, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fff
parent
6b19ee47
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
qgCiPipeline.groovy
vars/qgCiPipeline.groovy
+1
-0
qgCiSonar.groovy
vars/qgCiSonar.groovy
+5
-5
No files found.
vars/qgCiPipeline.groovy
View file @
273334d0
...
...
@@ -2,6 +2,7 @@
def
call
(
body
)
{
def
timeStemp
=
new
Date
().
format
(
"yyyyMMddHHmmss"
)
def
env
=
body
.
env
...
...
vars/qgCiSonar.groovy
View file @
273334d0
...
...
@@ -2,11 +2,11 @@ def call(body) {
def
_stage
=
new
org
.
qg
.
ci
.
StageBucket
()
def
_utils
=
new
org
.
qg
.
docker_new
.
Utils
()
def
env
=
body
.
env
def
GIT_
PEPO_SSH_URL
=
env
.
GIT_P
EPO_SSH_URL
def
GIT_
REPO_SSH_URL
=
env
.
GIT_R
EPO_SSH_URL
def
GIT_REPO_NAME
=
env
.
GIT_REPO_NAME
def
GIT_BRANCH
=
env
.
GIT_BRANCH
def
GIT_BRANCH_HASH
=
env
.
GIT_BRANCH_HASH
def
GIT_TRIG
ER_USER
=
env
.
GIT_TRI
GER_USER
def
GIT_TRIG
GER_USER
=
env
.
GIT_TRIG
GER_USER
def
TASK_INDEX
=
env
.
TASK_INDEX
def
callbackHost
def
config
=
[:]
...
...
@@ -22,17 +22,17 @@ def call(body) {
ansiColor
(
'xterm'
)
{
echo
"\033[32m############################################\n\
# GIT_
PEPO_SSH_URL:${GIT_P
EPO_SSH_URL}\n\
# GIT_
REPO_SSH_URL:${GIT_R
EPO_SSH_URL}\n\
# GIT_REPO_NAME:${GIT_REPO_NAME}\n\
# GIT_BRANCH:${GIT_BRANCH}\n\
# GIT_BRANCH_HASH:${GIT_BRANCH_HASH}\n\
# GIT_TRIG
ER_USER:${GIT_TRI
GER_USER}\n\
# GIT_TRIG
GER_USER:${GIT_TRIG
GER_USER}\n\
############################################\033[0m"
}
node
{
dir
(
GIT_REPO_NAME
){
urrentPath
=
sh
(
script:
'pwd'
,
returnStdout:
true
).
trim
()
c
urrentPath
=
sh
(
script:
'pwd'
,
returnStdout:
true
).
trim
()
stage
(
"SonarQube Quality Gate"
){
_stage
.
sonaar_check
(
GIT_REPO_NAME
,
GIT_BRANCH_HASH
,
currentPath
)
...
...
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