Jenkins Environment Variable

26 views
Skip to first unread message

Jayesh Iyer

unread,
Mar 14, 2016, 11:44:47 AM3/14/16
to Jenkins Users
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

Christopher Orr

unread,
Mar 16, 2016, 8:47:40 PM3/16/16
to jenkins...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages