Add filtered publishing - different approach for filtering

This commit is contained in:
Dan Hawkins 2019-03-19 14:50:46 +00:00
commit 19932d9f15

View file

@ -69,6 +69,7 @@ def getcomponentartifacts(releaseinfo, String repofolder, String tempfolder, ite
def ArrayList<String> publishablepaths = new ArrayList<String>()
if (publishableitems.size() > 0) {
for (publishableitem in publishableitems) {
echo "publishableitem: ${publishableitem.filepath}"
if (itempathstopublish.size() == 0 || publishableitem.filepath in itempathstopublish) {
publishablepaths.add(publishableitem.filepath)
summaryappend("${publishableitem.filepath},")