hi,

maybe this helps?
http://stackoverflow.com/questions/8606664/how-are-environment-variables-used-in-jenkins-with-windows-batch-command
In Windows batch it seems to work with %VARIABLE%.

Mit freundlichen Grüßen / kind regards
i.A. Andreas Schilling
Enterprise Processes & Software
-------------------------------------------------------------------
Dipl. Inf. Andreas Schilling
Senior Software Architect

TWT GmbH
Science & Innovation
Ernsthaldenstraße 17
D-70565 Stuttgart
 
Tel: +49.7 11.21 57 77.6 73
Mobil: +49.1 72.6 22 88 70
E-Mail: [email protected]
--------------------------------------------------------------------
www.twt-gmbh.de
--------------------------------------------------------------------
Geschäftsführung: Dr. Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank 
Beutenmüller (Stv.)
Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778
Umsatzsteuer: ID-Nr.: DE147841145
--------------------------------------------------------------------



Von:    Robert Pohl <[email protected]>
An:     [email protected]
Datum:  28.01.2014 16:06
Betreff:        Create a textfile with ${BUILD_NUMBER}
Gesendet von:   [email protected]



Hi,
I'm generating a text file with build info but it doesn't work :/

Under Build -> Execute Shell, there is a line: 
echo 'BuildNumber: ${BUILD_NUMBER}, GITRevision: ${GIT_BUILD_NUMBER}' > 
public/static/buildinfo.txt

But in that textfile it will show exactly "BuildNumber: ${BUILD_NUMBER}, 
GITRevision: ${GIT_BUILD_NUMBER}" and not the numbers.

How do I do this?

Thanks,
Rob
-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an 
email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to