logo       

Re: Fwd: How to get the current build number in a build tool?: msg#00073

java.hudson.user

Subject: Re: Fwd: How to get the current build number in a build tool?

Thanks for your reply. Could you please provide a little doc right in
this e-mail thread?
I am intersted in the name of environment variable with the current
build number.

On 24/01/07, Kohsuke Kawaguchi <Kohsuke.Kawaguchi@xxxxxxx> wrote:
Aliaksandr Radzivanovich wrote:
> Is it possible to propagate the current build number to a build tool
> (Maven or Ant)?
> Probably Hudson sets some environmental variable or a system property
> so it is possible to retrieve it later in a build script (e.g. it gets
> stored in property '${env.HUDSON_BUIL_NUMBER}' or
> '${hudson.currentBuildNumber}').

Yes. This is really just a doc issue. All the environment variables
available in shell are also available to Maven and Ant.

If you can file an issue so that we remember to update the docs
accordingly, that would be helpful.


--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi@xxxxxxx






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise