logo       

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

java.hudson.user

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

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

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

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

News | FAQ | advertise