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

GradleInstallation not setting PATH+GRADLE

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As of 1.26, it doesn't look like the Gradle plugin is setting PATH+GRADLE, so it's not getting added to the PATH automatically by the tool step (or in Declarative when you specify Gradle in the tools directive, which uses tool behind the scenes anyway). 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/gradle-plugin/pull/42
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #42 (Web Link)" [ 15504 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-28718 [ JENKINS-28718 ]
            jglick Jesse Glick made changes -
            Labels declarative pipeline
            abayer Andrew Bayer made changes -
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            src/main/java/hudson/plugins/gradle/GradleInstallation.java
            src/test/groovy/hudson/plugins/gradle/GradlePluginIntegrationTest.groovy
            http://jenkins-ci.org/commit/gradle-plugin/96e82f0a2140f72d8944f3c0435f81537d2f6ae7
            Log:
            [FIXED JENKINS-42381] Add PATH+GRADLE and buildEnvVars(...)

            This ensures that Gradle'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/plugins/gradle/GradleInstallation.java src/test/groovy/hudson/plugins/gradle/GradlePluginIntegrationTest.groovy http://jenkins-ci.org/commit/gradle-plugin/96e82f0a2140f72d8944f3c0435f81537d2f6ae7 Log: [FIXED JENKINS-42381] Add PATH+GRADLE and buildEnvVars(...) This ensures that Gradle'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.
            wolfs Stefan Wolf made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            Hide
            wolfs Stefan Wolf added a comment -

            1.27 has been released.

            Show
            wolfs Stefan Wolf added a comment - 1.27 has been released.
            wolfs Stefan Wolf made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: