Kristian
unread,May 30, 2016, 1:43:56 PM5/30/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Hello all,
I have a problem. In a job of Jenkins, I want to iterate over a bunch
of files, e.g. *.c. This is done through a shell script for Linux,
e.g.
for f in $(ls *.c); do
echo "$f"
done
That is how it is written in the job. But when I start, Jenkins changes it into
++ ls '*.c'
ls: cannot access *.c: No such file or directory
As you can see, Jenkins changes the command
> ls *.c
into
> ls '*.c'
Is this a bug? Are there any workarounds?