Print out items in sparse item list if the list is not empty
This commit is contained in:
parent
55a2e2a034
commit
b18dba3c00
1 changed files with 6 additions and 0 deletions
|
|
@ -93,6 +93,12 @@ def checkgitlfsinstall() {
|
|||
def gitCheckout(String gitURL, String revision, String targetDir, String repoRootSuffix = "", int cloneDepth = 1, boolean shallowClone = true, ArrayList<String> sparseitemlist = new ArrayList<String>()) {
|
||||
checkgitlfsinstall()
|
||||
def reporootpath = checkouttoreporoot(gitURL)
|
||||
if (!sparseitemlist.isEmpty()) {
|
||||
echo "Items in sparse item list: "
|
||||
for (item in sparseitemlist) {
|
||||
echo item
|
||||
}
|
||||
}
|
||||
checkout([
|
||||
$class: 'GitSCM',
|
||||
userRemoteConfigs: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue