[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 <aleksandr.vodyanov@avroid.tech> Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.tech> Co-authored-by: Andrey Danin <andrey.danin@avroid.tech> Co-committed-by: Andrey Danin <andrey.danin@avroid.tech>
This commit is contained in:
committed by
Denis Patrakeev
parent
76b0be0000
commit
d1214cfe77
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user