MCS-425 - Perform a sparse checkout of items to import from a release repo

This commit is contained in:
Dan Hawkins 2019-05-23 23:33:55 +01:00
commit f1cb5075a2

View file

@ -247,16 +247,16 @@ def gitsparserestore(String targetDir) {
}
def List convertSparseItemsString(String itemstopublish) {
def List paths = []
def List sparsepaths = []
def String[] items = itemstopublish.split(',')
def String allpaths = ""
for(String item : items) {
paths.add(item)
allpaths += "${path}\n"
sparsepaths.add(item)
allpaths += "${item}\n"
}
echo "Selected item to publish:\n${allpaths}"
return paths
return sparsepaths
}
def gitCheckoutAlt(String gitURL, String revision, String targetDir, String repoRootSuffix = "", int cloneDepth = 1, boolean shallowClone = true, ArrayList<String> sparseitemlist = new ArrayList<String>()) {