Add filtered publishing
This commit is contained in:
parent
e328e823e4
commit
94a966c7cd
1 changed files with 4 additions and 9 deletions
|
|
@ -41,14 +41,9 @@ def summaryappend(String summary) {
|
|||
summarystring += summary
|
||||
}
|
||||
|
||||
def guessreporoot(componentURL) {
|
||||
if (!env.REPO_ROOT || env.REPO_ROOT.size() == 0) {
|
||||
return ''
|
||||
}
|
||||
def guessreporootsuffix(componentURL) {
|
||||
def guess = componentURL.replaceFirst(/.*\/(.*).git/, '$1')
|
||||
def reporoot = "${REPO_ROOT}/${guess}"
|
||||
echo "Guessing reporoot is: ${reporoot}"
|
||||
return reporoot
|
||||
return guess
|
||||
}
|
||||
|
||||
gh = load("${autobuilder.commonscripts()}/versioncontrol/git.groovy")
|
||||
|
|
@ -66,8 +61,8 @@ def getcomponentartifacts(releaseinfo, String repofolder, String tempfolder) {
|
|||
publishablePaths.add(publishableitem.filepath)
|
||||
summaryappend("${publishableitem.filepath},")
|
||||
}
|
||||
def reporoot = guessreporoot(componentURL)
|
||||
gh.gitCheckout(componentURL, revision, repofolder, reporoot, 1, true, publishablePaths) // Shallow clone
|
||||
def reporootsuffix = guessreporootsuffix(componentURL)
|
||||
gh.gitCheckout(componentURL, revision, reporootsuffix, reporoot, 1, true, publishablePaths) // Shallow clone
|
||||
}
|
||||
else {
|
||||
summaryappend("None ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue