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

Artifactory Plugin is overriding the specified GRADLE_USER_HOME environment variable

XMLWordPrintable

      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.

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

              Created:
              Updated: