Jenkinsfile LFS fix for iOS/Mac pulls (#3396)

* Add git lfs install and pull into Jenkins Git pull stage

Signed-off-by: Mike Chang <changml@amazon.com>
This commit is contained in:
Mike Chang
2021-08-23 16:07:02 -07:00
committed by GitHub
parent 5a3c289fac
commit a92684c0b8
+5
View File
@@ -338,6 +338,11 @@ def PreBuildCommonSteps(Map pipelineConfig, String snapshot, String repositoryNa
else command += '.cmd'
command += " -u ${pipelineConfig.BUILD_ENTRY_POINT} --platform ${platform} --type clean"
palSh(command, "Running ${platform} clean")
if(fileExists('.lfsconfig')) {
palSh("git lfs install", "LFS config exists. Installing LFS hooks to local repo")
palSh("git lfs pull", "Pulling new LFS objects")
}
}
}