MCS-425 - Perform a sparse checkout of items to import from a release repo
This commit is contained in:
parent
a5a2603e27
commit
f1cb5075a2
1 changed files with 4 additions and 4 deletions
|
|
@ -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>()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue