From f6cfa752c7511f59a36befb4171913af6e900ed8 Mon Sep 17 00:00:00 2001 From: Brian Herrera Date: Fri, 26 Mar 2021 17:36:18 -0700 Subject: [PATCH] Restore lfs method removed during merge --- AutomatedReview/Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/AutomatedReview/Jenkinsfile b/AutomatedReview/Jenkinsfile index 1d5ef4bd2d..1c4f03f30d 100644 --- a/AutomatedReview/Jenkinsfile +++ b/AutomatedReview/Jenkinsfile @@ -163,7 +163,6 @@ def LoadPipelineConfig(String pipelineName, String branchName, String scmType) { if(platform) { pipelineConfig.platforms[platform].build_types = readJSON file: build_config_path.toString() } - palRm(build_config_path.toString()) } } return pipelineConfig @@ -311,7 +310,18 @@ def PullFilesFromGit(String filenamePath, String branchName, boolean failIfNotFo } } +def SetLfsCredentials(cmd, lbl = '') { + if (env.IS_UNIX) { + sh label: lbl, + script: cmd + } else { + bat label: lbl, + script: cmd + } +} + def CheckoutRepo(boolean disableSubmodules = false) { + palSh('git lfs uninstall', 'Git LFS Uninstall') // Prevent git from pulling lfs objects during checkout if(fileExists('.git')) { // If the repository after checkout is locked, likely we took a snapshot while git was running,