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?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO5HUhPE_c%2B85phWiCmeTyEeAGxmLJ%2BJ8vVef3epbvXvVNe1kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to