AntPluginTest does not work if ANT_HOME set

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Running locallyInstalledAnt test method of AntPluginTest with ANT_HOME set to a version of ANT and having on PATH another version of ANT makes the test fails because the expected ANT version is get calling:

      jenkins.runScript("'ant -version'.execute().text");
      

      which probably uses ANT_HOME and then the real execution of the build task is executed using the one defined in PATH variable, and since they are different the build fails. This happens in CI environment.

            Assignee:
            Manuel Franco
            Reporter:
            Alex Soto
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: