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"])