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

            abayer Andrew Bayer created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/ant-plugin/pull/26
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #26 (Web Link)" [ 15503 ]
            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.
            jglick Jesse Glick made changes -
            Labels declarative pipeline
            Hide
            jglick Jesse Glick added a comment -
            Show
            jglick Jesse Glick added a comment - Cf. JENKINS-28718 .
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-28718 [ JENKINS-28718 ]
            abayer Andrew Bayer made changes -
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            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.
            armfergom Armando Fernandez made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              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: