Dear all,

When a pipeline needs to run a sequence of several shell commands, I see
several ways of doing that.

1. Several "sh" invocations.

2. One "sh" invocation that contains all the commands.

3. Having each "sh" invocation in its own step.

4. Putting all the commands in a script and invoking that script through
the sh step.

Would someone be able to explain the pros and cons of these different
approaches and to advice when to use which? Or is there perhaps a
reference I should read?

Thanks,

Sébastien.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20200811143317.GB117214%40om.localdomain.

Reply via email to