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
5b26900b
Commit
5b26900b
authored
May 11, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fff
parent
090c6ef1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
StageBucket.groovy
src/org/qg/ci/StageBucket.groovy
+3
-3
qgCiSonar.groovy
vars/qgCiSonar.groovy
+10
-3
No files found.
src/org/qg/ci/StageBucket.groovy
View file @
5b26900b
...
...
@@ -29,7 +29,7 @@ def sonaar_check(GIT_REPO_NAME,GIT_BRANCH,currentPath){
}
def
callback_pipes
(
taskId
)
{
def
callback_pipes
(
callbackHost
,
taskId
)
{
sleep
3
sonarInfo
=
sh
(
script:
'cat .sonar/report-task.txt |awk \'{printf $0 "&"}\''
,
returnStdout:
true
).
trim
()
...
...
@@ -49,13 +49,13 @@ def callback_pipes(taskId) {
def
bodyJson
=
JsonOutput
.
toJson
(
body
)
echo
bodyJson
dest_url
=
"http://pipes-default.q-gp.com/callback/ci/triger"
response
=
httpRequest
httpMode:
"POST"
,
consoleLogResponseBody:
true
,
contentType:
"APPLICATION_JSON"
,
requestBody:
"${bodyJson}"
,
url:
dest_url
url:
callbackHost
/* def res_json = jsonParse(response.content)
return res_json*/
...
...
vars/qgCiSonar.groovy
View file @
5b26900b
...
...
@@ -8,14 +8,21 @@ def call(body) {
def
GIT_BRANCH_HASH
=
env
.
GIT_BRANCH_HASH
def
GIT_TRIGER_USER
=
env
.
GIT_TRIGER_USER
def
TASK_INDEX
=
env
.
TASK_INDEX
def
callbackHost
=
"http://pipes-default.q-gp.com/callback/ci/triger"
def
currentPath
/*
body.resolveStrategy = Closure.DELEGATE_FIRST
body
.
resolveStrategy
=
Closure
.
DELEGATE_FIRST
body
.
delegate
=
config
body()*/
body
()
if
(
config
.
callbackHost
!=
null
){
callbackHost
=
config
.
callbackHost
}
ansiColor
(
'xterm'
)
{
echo
"\033[32m############################################\n\
...
...
@@ -36,7 +43,7 @@ echo "\033[32m############################################\n\
}
stage
(
"callback"
){
_stage
.
callback_pipes
(
TASK_INDEX
)
_stage
.
callback_pipes
(
callbackHost
,
TASK_INDEX
)
}
}
...
...
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