How to specify w140> shell loading location?

We transferred our project to gradle, and we continue to build on Jenkins. We use the gradle shell and the Jenkings gradle plugin.

I found out by looking at the console output that gradle will be loaded in each assembly:

11:24:42 Downloading http://services.gradle.org/distributions/gradle-1.5-bin.zip 11:24:48 ........................................................ 11:24:49 Unzipping /home/workspace/our_build/wrapper/dists/gradle-1.5-bin/9si5v6u7tk37kj5dlsrdcm595/gradle-1.5-bin.zip to /home/workspace/our_build/wrapper/dists/gradle-1.5-bin/9si5v6u7tk37kj5dlsrdcm595 

I think the reason is that the accurev plugin will always clear the entire workspace for each run (cannot be disabled).

Can I customize gradle download location? Is it safe to use a common place for all tasks? Or is it better to have a job?

+3
source share
1 answer

The Wrapper task has several properties that allow you to configure it. You can specify an alternative URL to download it ( distributionUrl ). You can also leave the URL as is, but specify where the shell ( distributionBase ) should be stored, which will allow it to be stored outside the directory, which is cleaned every time by your accurev plugin.

I do not understand why it is unsafe to use a shared location. This is done by default, since the shell is stored in the gradle user's home directory.

+2
source

Source: https://habr.com/ru/post/1264137/


All Articles