Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1640

Environment variables not passed through to Ant tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • ant-plugin
    • None
    • Platform: All, OS: All

      It appears that environment variables available in the Hudson configuration
      (i.e. visible in the Hudson System Information page) are NOT passed to Ant
      builds when Hudson launches a configured Ant installation.

      This does not seem intentional. Is this by design?

      For example, I declare an environment variable MYSTERY='This is a puzzler' and
      make it available in the shell by which I launch Hudson (java -jar Hudson.war)

      I add an <echo> statement in my Ant build script to print out the value of this
      env variable. When running Ant outside of Hudson, the value of MYSTERY is
      displayed properly. When running Ant inside of Hudson, the value is not
      resolved even though Hudson displays the value of MYSTERY properly in the
      Environment Variables section of the System Information page.

      This seems unexpected.
      Is this a known issue?

            Unassigned Unassigned
            kphawkins kphawkins
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: