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

View file

@ -1,7 +1,7 @@
// 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('/')) {
def files = findFiles glob: filepath
if (files.length > 0) {
@ -17,7 +17,9 @@ def checkallowed(String filepath) {
def generatelist(meta, publishable) {
filelist = []
for (filepath in publishable) {
checkallowed(filepath)
if (filepath != meta.METAARTIFACTS) {
allowed(filepath)
}
meta.addPublishable(filepath)
}
}