From e2a380ef381efe4a628467f44550af0683c376dd Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Tue, 10 Sep 2024 13:17:20 +0300 Subject: [PATCH] [DO-561] disable submodules for OS (!33) Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/33 Co-authored-by: aleksandr.vodyanov Co-committed-by: aleksandr.vodyanov --- pipelines/DevSecOps/svace-analyze.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pipelines/DevSecOps/svace-analyze.groovy b/pipelines/DevSecOps/svace-analyze.groovy index 2f91204..c096e40 100644 --- a/pipelines/DevSecOps/svace-analyze.groovy +++ b/pipelines/DevSecOps/svace-analyze.groovy @@ -51,10 +51,13 @@ node('svace') { stage('Download') { Git git = new Git(this, env.JENKINS_GIT_CREDENTIALS_SSH) + Boolean isDisableSubmodules = (params.GIT_PROJECT == 'Eisen/OS') ? true : false + git.clone([ urlRepo: "${env.JENKINS_GIT_REPOSITORY_SSH_URL}/${params.GIT_PROJECT}", branch: params.BRANCH, path: "${env.WORKSPACE}/${params.GIT_PROJECT}", + disableSubmodules: isDisableSubmodules ]) svaceBuildResults = nexus.download(params.SVACE_BUILD_RESULTS_LINK) commitShortSha = (params.COMMIT_SHA) ? params.COMMIT_SHA : git.log([count:1, format: "%h"])