Add filtered publishing - different approach for filtering

This commit is contained in:
Dan Hawkins 2019-03-19 14:40:16 +00:00
commit 14a6291d3d

View file

@ -66,13 +66,10 @@ def getcomponentartifacts(releaseinfo, String repofolder, String tempfolder, ite
def String revision = "refs/tags/${releasemeta.buildstampinfo.buildstamp}_${releasemeta.jenkinsbuildinfo.buildnumber}"
def publishableitems = releasemeta.publishableinfo
echo "itempathstopublish: ${itempathstopublish}"
echo "publishableitems: ${publishableitems}"
def ArrayList<String> publishablepaths = new ArrayList<String>()
if (publishableitems.size() > 0) {
for (publishableitem in publishableitems) {
if (itempathstopublish.size() == 0 || publishableitem in itempathstopublish) {
if (itempathstopublish.size() == 0 || publishableitem.filepath in itempathstopublish) {
publishablepaths.add(publishableitem.filepath)
summaryappend("${publishableitem.filepath},")
}