[JIRA] (JENKINS-46983) findFiles step result to expose folder of the matched result separately

3 views
Skip to first unread message

tobin.davis@meghcomputing.com (JIRA)

unread,
Jul 2, 2019, 8:53:02 PM7/2/19
to jenkinsc...@googlegroups.com
Tobin Davis commented on New Feature JENKINS-46983
 
Re: findFiles step result to expose folder of the matched result separately

Can't you use something like this:

fileList = findFiles(glob: 'tests***1.xml')
fileDir = fileList[0].path.minus(fileList[0].name)

I tested it and it works for me.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

toma_bussarov@hotmail.com (JIRA)

unread,
Jul 9, 2019, 2:14:02 AM7/9/19
to jenkinsc...@googlegroups.com

Thanks,

It looks good as a workaround, except in some edge cases where matched filename as a string is also found in the directory path.

 

Reply all
Reply to author
Forward
0 new messages