[Anthill-pro] Setting a Buildlife property from an environment variable

Peter Steele psteele at maxiscale.com
Sat Nov 14 18:02:01 CST 2009


Btw, one thing I tried was write the value on the environment variable into a file, and then read that file in the bean shell script to get the value for the buildlife property. The problem with this approach is that the shell script executes on one of the build agents whereas the beanshell script appears to execute on the server. So the file I created in the shell command step wasn't available to the bean shell script. This seemed like it might be a simple solution, but not quite...

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Peter Steele
Sent: Saturday, November 14, 2009 3:47 PM
To: anthill-pro at lists.urbancode.com
Subject: [Anthill-pro] Setting a Buildlife property from an environment variable

What's the easiest way to set a buildlife property to the value of an environment variable? I have a shell step that computes a value and stores it in an environment variable. I then was to store that value in an Anthill buildlife property. I can write a beanshell evaluate script step to set a property, but I don't know a good way for how to migrate the environment variable value from the shell step to the evaluate script step. Any suggestions?

_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro


More information about the Anthill-pro mailing list