This commit is contained in:
Dan Hawkins 2019-04-29 11:50:17 +01:00
commit a181971f80

View file

@ -1,7 +1,7 @@
// The filepath must end in "<folder>/**" or "<folder>/" - Glob wildcard - as a git sparse checkout // The filepath must end in "<folder>/**" or "<folder>/" - Glob wildcard - as a git sparse checkout
def checkallowed(String filepath) { def allowed(String filepath) {
if (filepath.endsWith('/**') || filepath.endsWith('/')) { if (filepath.endsWith('/**') || filepath.endsWith('/')) {
def files = findFiles glob: filepath def files = findFiles glob: filepath
if (files.length > 0) { if (files.length > 0) {
@ -17,7 +17,9 @@ def checkallowed(String filepath) {
def generatelist(meta, publishable) { def generatelist(meta, publishable) {
filelist = [] filelist = []
for (filepath in publishable) { for (filepath in publishable) {
checkallowed(filepath) if (filepath != meta.METAARTIFACTS) {
allowed(filepath)
}
meta.addPublishable(filepath) meta.addPublishable(filepath)
} }
} }