I'm using the Copy Artifact plugin on my Hudson install.
I'm using it successfully to copy artifacts from a build job into a
later (deployment) job.
It copies artifacts from the last stable build and whilst the console
log shows which build number this is, I can't see how to retrieve this
build number within my job.
I was hoping the plugin creates an environment variable or something
to allow later build steps to know which build number is being used.
Can someone tell me how it makes the build number used available - or
confirm that it doesn't.
Many Thanks,
Graham
But you can get the build number from
http://YOURHUDSON/job/JOBNAME/X/buildNumber
where X is "lastBuild", "lastSuccessfulBuild", "lastStableBuild" and so on. It is easy to read this URL in a build script using a command line utility like wget or using standard HTTP libraries in script languages like python or perl or ruby or...
-- Sami
If no-one can suggest an no easy way to do this on vanilla windows
(win2003 server or win7), I can probably write a wget-like utility to
do this for me - and perhaps I'll raise a feature request on the
plugin....
Many Thanks, Graham
Thomas
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postm...@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
-- Sami