dev@glassfish.java.net

Hudson tip: pipe some commands thru true(1)

From: Ed Burns <edward.burns_at_oracle.com>
Date: Mon, 29 Nov 2010 10:09:15 -0800

I wanted to have a hudson job on a CVS workspace, and I wanted the diffs
in the workspace to be printed in the build output.

Simply putting

cvs diff -u

in the output caused the build fail because, apparently, cvs diff -u
returns non-zero.

piping the output thru true(1) worked.

cvs diff -u > diffs.patch | true
cat diffs.patch

Ed
-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/