How can I set environment variable in Cruisecontrol?
If I try to do it like this:
<exec command="set PATH="
workingdir="d:\AppLiteNew\Projects\"
args = "%PATH%;D:\QtSDK\mingw\bin\"/>
it does not work, all I got is:
[cc]Dec-13 13:30:28 ExecBuilder – Could not execute command: set PATH= with arguments: %PATH%;D:\QtSDK\mingw\bin\
Firstly, you use the exec command wrong
The command is
setand its argument should bePATH=%PATH%;D:\QtSDK\mingw\bin\This should work:
Secondly, it won’t have an effect
The Path you set, will only be available to the shell/command that is executed by invoking exec. After the call it will not be available to further commands /executions.
You didn’t state what use case you have or where you need the variable, therefore I can only guess, what you could do.
You could do the following: