Is it possible to set an Hudson variable from Ant?
I would like to :
- Declare a VER_NUM variable in Hudson
- Hudson launch an Ant target
- ANT set the valueofo VER_NUM
- Hudson does others tasks
- Hudson launch an other Ant target passing VER_NUM as parameter
- Ant use VER_NUM (which has been set by another target and another launch of Ant)
Best regards,
Chris
No it is not possible. Ant has no way of setting an enviromental variable to something else by itself. You could do this with an exec task by setting the variable there via a script, however once the exec task is gone – so is your enviromental variable. I would use a property file or something else more tangible which you can then pass to other scripts.