[workflow plugin] loop stops at first iteration as it seems...

30 views
Skip to first unread message

Shane Kim

unread,
Feb 6, 2015, 2:20:53 AM2/6/15
to jenkins...@googlegroups.com
Hi,

I'm not sure if workflow plugin is limiting iteration or not, I found it really odd...

I have this simple code...

def cdir = new File('.')

cdir.eachFileRecurse(FileType.FILES) { file ->
// or eachFile method
    println file
.getName()
}


When I execute the code on straight command line I get expected result, which is a list of files. However, the same code returns only first file name when executed inside a workflow job.

Is this an expected behavior?

Shane Kim

unread,
Feb 6, 2015, 2:22:17 AM2/6/15
to jenkins...@googlegroups.com
BTW I'm using workflow plugin 1.3 version straight from github.

Jesse Glick

unread,
Feb 25, 2015, 6:09:08 PM2/25/15
to jenkins...@googlegroups.com
On Friday, February 6, 2015 at 2:20:53 AM UTC-5, Shane Kim wrote:
Is this an expected behavior?

Reply all
Reply to author
Forward
0 new messages