logo       

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

java.hudson.user

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

Aliaksandr Radzivanovich wrote:
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.

Check the description under the "shell" section, which should have a link to http://yourhost/hudson/env-vars.html


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




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxxxxx




--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi@xxxxxxx

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

News | FAQ | advertise