Ignoring the Return Value of a Command in Hudson/Jenkins sh Task
pylint src/openhea -f parseable ; true
The problem is that both statements are treated as separate steps so when the first one fails it never does the return true. Instead, and pointed out by a helpful chap in the #efdhack2012 room was to do the following
pylint src/openhea -f parseable || true
This correctly ignores the false status code, the only wrinkle is that you need to be careful when piping the output, it has to be to the left of the bars.
pylint src/openhea -f parseable > output.report || true
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)