Hey Micheal,

here is how i did it:

i wanted to change my build name to our mercurial change set name, so i did 
this:
1. used the hg command to get the change set name: 123:abcdefghi
2. used a shell to echo the name i wanted to a file like so:
3. echo 123:abcdefghi > /tmp/workspace/changeset.properties
4. in the job configuration inject environment variables section i added 
/tmp/workspace/hgchangeset.properties to the text field and viola

hope that helps

xterm

On Tuesday, October 30, 2012 8:10:38 AM UTC-5, Michael Hüttermann wrote:
>
> Hello, 
>
> could you please give me a pointer what the recommended way is to set 
> environment variables in hudson.tasks.Builder#perform, which are in turn 
> read in a later build step inside the same job? 
>
>
> Thank you. 
>
>
> Cheers 
> Michael 
>

Reply via email to