From d1214cfe7773476440f5d87e71241949b72d54e3 Mon Sep 17 00:00:00 2001 From: Andrey Danin Date: Thu, 17 Oct 2024 18:49:46 +0300 Subject: [PATCH] [DO-1194] Add BUILD_PLATFORM to sarif URL location on nexus (!40) Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/40 Reviewed-by: Aleksandr Vodyanov Reviewed-by: Denis Patrakeev Co-authored-by: Andrey Danin Co-committed-by: Andrey Danin --- pipelines/DevSecOps/svace-analyze.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipelines/DevSecOps/svace-analyze.groovy b/pipelines/DevSecOps/svace-analyze.groovy index b709c04..3ef738a 100644 --- a/pipelines/DevSecOps/svace-analyze.groovy +++ b/pipelines/DevSecOps/svace-analyze.groovy @@ -84,12 +84,14 @@ node('svace') { String branch = params.BRANCH String mainBranch = params.MAIN_BRANCH + nexusSvaceSarifRepoPath = "${params.GIT_PROJECT}/${params.BRANCH}/${commitShortSha}" + if (params.BUILD_PLATFORM) { branch += '_' + params.BUILD_PLATFORM mainBranch += '_' + params.BUILD_PLATFORM + nexusSvaceSarifRepoPath += '/' + params.BUILD_PLATFORM } - nexusSvaceSarifRepoPath = "${params.GIT_PROJECT}/${params.BRANCH}/${commitShortSha}" sh """ ${svaceCmd} svres2sarif \ ${svaceResultsDir}/.svace-dir/analyze-res/svace_analysis.svres \