[Issue 677] New - set arbitrary environment variables for build tools

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 677] New - set arbitrary environment variables for build tools

hlipka
https://hudson.dev.java.net/issues/show_bug.cgi?id=677
                 Issue #|677
                 Summary|set arbitrary environment variables for build tools
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|FEATURE
                Priority|P2
            Subcomponent|ant
             Assigned to|issues@hudson
             Reported by|hlipka






------- Additional comments from [hidden email] Thu Jul 26 12:58:33 +0000 2007 -------
I'm missing the possibility to set environment variables for calling ANT (or
other build tools).
Currently I'm creating a build server for our software project, which deploy
their own ANT installation, which (in its scripts) reads some environment
variables to know where the files are located.
Currently, I set these variables in catalina.bat. But since I need to have
multiple versions installed (to have separate builds), this won't work then :(

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 677] set arbitrary environment variables for build tools

jglick-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=677






------- Additional comments from [hidden email] Thu Jul 26 15:03:46 +0000 2007 -------
1. Generally Ant scripts ought not rely exclusively on environment variables. If
you decide it is a good idea to rely on them all (reduces build reproducibility
but may be sensible for some purposes), it is best to have them serve only as
default values for Ant properties which can also be overridden by -Dk=v options
- which you can simply set in the list of "targets" (actually any Ant options)
in Hudson config.

2. If you really need to set env vars specifically, you can also (as a
workaround) select the "shell command" option and just write e.g.

  SOME_VAR=val ant build

in the textarea for the script.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 677] set arbitrary environment variables for build tools

kohsuke-djn
In reply to this post by hlipka
https://hudson.dev.java.net/issues/show_bug.cgi?id=677



User kohsuke changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |WONTFIX
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Fri Jul 27 03:56:24 +0000 2007 -------
I agree with Jesse. I don't think we want to further complicate the config UI,
and shell script offers excellent capability to set environment variables.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]