You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@apache.org by Jukka Zitting <ju...@gmail.com> on 2010/11/01 17:12:17 UTC

Re: running lsof from a hudson build

Hi,

On Mon, Nov 1, 2010 at 5:58 PM, Sim IJskes - QCG <si...@qcg.nl> wrote:
> Do you allow a build script to call external utilities? It would be nice if
> we could see the bind sockets after a failed bind, with lsof for instance.
> Do you allow it, and if you do, do you have an example?

Yes, a build can execute any command it wants (we trust the job
administrators to do the right thing). See [1] for an incomplete list
of tools that are available in addition to the standard OS
environment.

The easiest way to invoke such external tools is probably to simply
include the calls in your build script. For example an Ant build can
use the <exec/> task for this.

Note that, where possible, it would be good if a CI build used random
port numbers instead of fixed ones to avoid collisions with potential
other builds on the same server.

[1] http://wiki.apache.org/general/Hudson#What_should_I_do_with_the_build_and_test_tools_that_my_project_needs.3F

BR,

Jukka Zitting