Add filtered publishing
This commit is contained in:
parent
9fad59a8a8
commit
9ee093481d
1 changed files with 12 additions and 1 deletions
|
|
@ -41,6 +41,16 @@ def summaryappend(String summary) {
|
|||
summarystring += summary
|
||||
}
|
||||
|
||||
def guessreporoot(componentURL) {
|
||||
if (env.REPOROOT || env.REPOROOT.length() == 0) {
|
||||
return ''
|
||||
}
|
||||
def guess = componentURL.replaceFirst(/.*\/(.*).git/, '$1')
|
||||
def reporoot = "${REPOROOT}/${guess}"
|
||||
echo "Guessing reporoot is: ${reporoot}"
|
||||
return reporoot
|
||||
}
|
||||
|
||||
gh = load("${autobuilder.commonscripts()}/versioncontrol/git.groovy")
|
||||
def getcomponentartifacts(releaseinfo, String repofolder, String tempfolder) {
|
||||
// Copy relevant artifacts to temp folder
|
||||
|
|
@ -56,7 +66,8 @@ def getcomponentartifacts(releaseinfo, String repofolder, String tempfolder) {
|
|||
publishablePaths.add(publishableitem.filepath)
|
||||
summaryappend("${publishableitem.filepath},")
|
||||
}
|
||||
gh.gitCheckout(componentURL, revision, repofolder, "", 1, true, publishablePaths) // Shallow clone
|
||||
def reporoot = guessreporoot(componentURL)
|
||||
gh.gitCheckout(componentURL, revision, repofolder, reporoot, 1, true, publishablePaths) // Shallow clone
|
||||
}
|
||||
else {
|
||||
summaryappend("None ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue