From 98b63da77a79661f10b7c363d7a7f86b5ef2746a Mon Sep 17 00:00:00 2001 From: keshavprasadms <msknext@gmail.com> Date: Tue, 16 Jul 2019 12:44:17 +0530 Subject: [PATCH] issue #000: fix for clone depth --- pipelines/deploy/player-cdn/Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipelines/deploy/player-cdn/Jenkinsfile b/pipelines/deploy/player-cdn/Jenkinsfile index 6bebc6a93..d8258c964 100644 --- a/pipelines/deploy/player-cdn/Jenkinsfile +++ b/pipelines/deploy/player-cdn/Jenkinsfile @@ -34,8 +34,7 @@ node() { println cdnUrl commitHash = sh(script: "jq -r '.commit_hash' metadata.json", returnStdout: true).trim() dir('sunbird-portal') { - sunbirdPortalUrl = 'https://github.com/Sunbird-Ed/SunbirdEd-portal.git' - checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: "$commitHash"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', depth: 0, noTags: true, reference: '', shallow: true]], submoduleCfg: [], userRemoteConfigs: [[url: "$sunbirdPortalUrl"]]] + checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: commitHash]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/Sunbird-Ed/SunbirdEd-portal.git']]] sh "./build-cdn.sh ${cdnUrl} ${commitHash}" } ansibleExtraArgs = "--extra-vars assets=$currentWs/sunbird-portal/src/app/dist --extra-vars cdn_file_path=$currentWs/sunbird-portal/src/app/dist/index_cdn.ejs --vault-password-file /var/lib/jenkins/secrets/vault-pass" -- GitLab