[DO-561] disable submodules for OS (!33)

Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/33
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
aleksandr.vodyanov
2024-09-10 13:17:20 +03:00
committed by Aleksandr Vodyanov
parent 254b96d24b
commit e2a380ef38

View File

@@ -51,10 +51,13 @@ node('svace') {
stage('Download') { stage('Download') {
Git git = new Git(this, env.JENKINS_GIT_CREDENTIALS_SSH) Git git = new Git(this, env.JENKINS_GIT_CREDENTIALS_SSH)
Boolean isDisableSubmodules = (params.GIT_PROJECT == 'Eisen/OS') ? true : false
git.clone([ git.clone([
urlRepo: "${env.JENKINS_GIT_REPOSITORY_SSH_URL}/${params.GIT_PROJECT}", urlRepo: "${env.JENKINS_GIT_REPOSITORY_SSH_URL}/${params.GIT_PROJECT}",
branch: params.BRANCH, branch: params.BRANCH,
path: "${env.WORKSPACE}/${params.GIT_PROJECT}", path: "${env.WORKSPACE}/${params.GIT_PROJECT}",
disableSubmodules: isDisableSubmodules
]) ])
svaceBuildResults = nexus.download(params.SVACE_BUILD_RESULTS_LINK) svaceBuildResults = nexus.download(params.SVACE_BUILD_RESULTS_LINK)
commitShortSha = (params.COMMIT_SHA) ? params.COMMIT_SHA : git.log([count:1, format: "%h"]) commitShortSha = (params.COMMIT_SHA) ? params.COMMIT_SHA : git.log([count:1, format: "%h"])