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

AntInstallation not setting PATH+ANT

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As of 1.4, the Ant plugin isn't setting PATH+ANT so the Pipeline tool step (and things building on that step, like Declarative's tools directive) don't get Ant automatically added to the PATH. That should be fixed.

        Attachments

          Issue Links

            Activity

            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/ant-plugin/pull/26
            Hide
            jglick Jesse Glick added a comment -

            tool does not currently do anything with environment variables, so I suppose this affects only Declarative.

            Show
            jglick Jesse Glick added a comment - tool does not currently do anything with environment variables, so I suppose this affects only Declarative.
            Hide
            jglick Jesse Glick added a comment -
            Show
            jglick Jesse Glick added a comment - Cf. JENKINS-28718 .
            Hide
            abayer Andrew Bayer added a comment -

            Oh rrriiiight - I forgot that I had to write up Declarative-specific logic for the env var stuff. Sorry!

            Show
            abayer Andrew Bayer added a comment - Oh rrriiiight - I forgot that I had to write up Declarative-specific logic for the env var stuff. Sorry!
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            src/main/java/hudson/tasks/Ant.java
            http://jenkins-ci.org/commit/ant-plugin/27ec2ff4dae68ceeaeba9d558f154e4767e5e3eb
            Log:
            [FIXED JENKINS-42382] Add PATH+ANT to buildEnvVars(...)

            This ensures that Ant's bin directory ends up on the PATH when using
            the Pipeline tool step. Note that Jenkins' environment variable
            management will handle converting "/bin" on Windows if needed, we do
            not need to do that explicitly.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/hudson/tasks/Ant.java http://jenkins-ci.org/commit/ant-plugin/27ec2ff4dae68ceeaeba9d558f154e4767e5e3eb Log: [FIXED JENKINS-42382] Add PATH+ANT to buildEnvVars(...) This ensures that Ant's bin directory ends up on the PATH when using the Pipeline tool step. Note that Jenkins' environment variable management will handle converting "/bin" on Windows if needed, we do not need to do that explicitly.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: