Squashed 'autobuild/Common_scripts/' changes from 78da6d1..9a7161e
9a7161e Git LFS not installing on windows powershell 75631d9 Git LFS not installing on windows powershell e652bd6 Merge commit '616c8b13a0' b236c7c Correct merge dcccf93 Merge commit 'a88d5c4c23' 5322cab Merge commit '21b372134d' git-subtree-dir: autobuild/Common_scripts git-subtree-split: 9a7161e06c7dfcbe0f59b6f263512f2e473499cf
This commit is contained in:
parent
616c8b13a0
commit
4e46881ae9
1 changed files with 4 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ def String checkouttoreporoot(String gitURL) {
|
|||
branches: [
|
||||
[name: 'origin/master']
|
||||
],
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions: [
|
||||
[$class: 'GitLFSPull'],
|
||||
[$class: 'CleanBeforeCheckout'],
|
||||
|
|
@ -134,6 +134,7 @@ def String checkouttoreporoot(String gitURL) {
|
|||
}
|
||||
|
||||
def checkgitlfsinstall() {
|
||||
echo "Doing: git lfs install"
|
||||
if (isUnix()) {
|
||||
sh """
|
||||
git lfs install
|
||||
|
|
@ -142,6 +143,7 @@ def checkgitlfsinstall() {
|
|||
|
||||
} else {
|
||||
powershell """
|
||||
git config --unset core.hooksPath
|
||||
git lfs install
|
||||
if (\$lastexitcode -ge 1) { exit 1 }
|
||||
"""
|
||||
|
|
@ -307,7 +309,7 @@ def gitsparserestore(String targetDir) {
|
|||
|
||||
def List convertSparseItemsString(String itemstopublish) {
|
||||
def List sparsepaths = []
|
||||
|
||||
|
||||
boolean nonempty = itemstopublish?.trim()
|
||||
if (nonempty) {
|
||||
def String[] items = itemstopublish.trim().split(',')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue