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
cda0d537
Commit
cda0d537
authored
May 03, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffff
parent
97693051
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
StageBucket.groovy
src/org/qg/ci/StageBucket.groovy
+8
-4
qgCiSonar.groovy
vars/qgCiSonar.groovy
+1
-1
No files found.
src/org/qg/ci/StageBucket.groovy
View file @
cda0d537
...
@@ -39,17 +39,21 @@ def callback_pipes(info) {
...
@@ -39,17 +39,21 @@ def callback_pipes(info) {
content
[
itemSplit
[
0
]]
=
itemSplit
[
1
]
content
[
itemSplit
[
0
]]
=
itemSplit
[
1
]
}
}
def
contentJson
=
JsonOutput
.
toJson
(
content
)
echo
contentJson
body
=[:]
body
[
"taskId"
]
=
info
[
"taskId"
]
body
[
"content"
]
=
content
def
bodyJson
=
JsonOutput
.
toJson
(
body
)
echo
bodyJson
dest_url
=
"http://mock.q-gp.com/ttttttttt"
dest_url
=
"http://192.168.28.141:8080/callback/ci/triger"
response
=
httpRequest
httpMode:
"POST"
,
response
=
httpRequest
httpMode:
"POST"
,
consoleLogResponseBody:
true
,
consoleLogResponseBody:
true
,
contentType:
"APPLICATION_JSON"
,
contentType:
"APPLICATION_JSON"
,
requestBody:
"
""#{contentJson}""
"
,
requestBody:
"
${bodyJson}
"
,
url:
dest_url
url:
dest_url
def
res_json
=
jsonParse
(
response
.
content
)
def
res_json
=
jsonParse
(
response
.
content
)
...
...
vars/qgCiSonar.groovy
View file @
cda0d537
...
@@ -43,7 +43,7 @@ echo "\033[32m############################################\n\
...
@@ -43,7 +43,7 @@ echo "\033[32m############################################\n\
}
}
stage
(
"callback"
){
stage
(
"callback"
){
/* _stage.callback_pipes(info)*/
_stage
.
callback_pipes
(
info
)
}
}
}
}
...
...
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