hostfix: json output (!73)
hostfix Co-authored-by: Boris Shestov <boris.shestov@avroid.tech> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/73 Co-authored-by: Boris Shestov <boris.shestov@avroid.team> Co-committed-by: Boris Shestov <boris.shestov@avroid.team>
This commit is contained in:
committed by
Aleksandr Vodyanov
parent
e751d28873
commit
efa1586ef1
@@ -64,6 +64,7 @@ podTemplate(workspaceVolume: emptyDirWorkspaceVolume(memory: false),
|
|||||||
String branchName = ''
|
String branchName = ''
|
||||||
if (env.webhookBody) {
|
if (env.webhookBody) {
|
||||||
Map fullJSON = readJSON(text: webhookBody)
|
Map fullJSON = readJSON(text: webhookBody)
|
||||||
|
println fullJSON
|
||||||
if (fullJSON.containsKey('head_commit')) {
|
if (fullJSON.containsKey('head_commit')) {
|
||||||
String hashCommit = fullJSON['head_commit']['id']
|
String hashCommit = fullJSON['head_commit']['id']
|
||||||
String shorthashCommit = hashCommit.substring(0, 10)
|
String shorthashCommit = hashCommit.substring(0, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user