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

Artifactory Plugin is overriding the specified GRADLE_USER_HOME environment variable

      When running a gradle build using the Artifactory-plugin using pipeline, the plugin is modifying the $GRADLE_USER_HOME value and hence gradle is not able to pick up any agent specify properties from gradle.properties file.

      The actual code making this is https://github.com/JFrogDev/jenkins-artifactory-plugin/blob/master/src/main/java/org/jfrog/hudson/pipeline/steps/ArtifactoryGradleBuild.java#L169

      Is this a necessary modification for artifactory to work properly? Can the plugin work leaving the environment variables as it is?

      Note: We can't move the gradle.properties file inside the workspace because there's already another project specific gradle.properties file there and we want to use both the files.

          [JENKINS-41082] Artifactory Plugin is overriding the specified GRADLE_USER_HOME environment variable

          Tamir Hadad added a comment -

          abishek3876, Thanks for reporting this issue .
          We will fix this issue in our next release.
          You can follow the issue at HAP-873 .

          Tamir Hadad added a comment - abishek3876 , Thanks for reporting this issue . We will fix this issue in our next release. You can follow the issue at HAP-873 .

            eyalbe Eyal Ben Moshe
            abishek3876 Abishek Manoharan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: