On 14/03/16 16:44, Jayesh Iyer wrote:
Hi,
I am using jenkins environment variable, i am specifying property
something like
count=1
the same is present in my build file as
<entry key="count" value="${env.count}"/>
I have specified a property file something as
C:\Users\myname.i\workspace\Project\application.properties
When i trigger the build, the property file gets updated as
count=${env.count} and not the value which is 1 ( I am passing this as a
parameter from jenkins)
Can anyone say what wrong i am doing here
Without more details, not really.
You're right that a build parameter should be exported as an environment
variable.
It sounds possibly like you're using an Ant build file (perhaps?) to
write a properties file.
If so, have you included <property environment="env" /> in your Ant build?
Regards,
Chris
--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/56E9FEA2.10908%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.