jenkins - How can a specify the Gradle wrapper download location? -


we moved our project gradle , have continuous build on jenkins. use gradle wrapper , jenkings gradle plugin.

i recognized reviewing console output gradle downloaded on each build:

    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            /home/workspace/our_build/wrapper/dists/gradle-1.5-bin/9si5v6u7tk37kj5dlsrdcm595 

i think reason because accurev plugin purge whole workspace each run (cannot disabled).

is possible configure gradle download location? safe use shared location jobs? or better have location per job?

the wrapper task has several properties allowing customization. can specify alternate url download (distributionurl). can leave url is, specify wrapper must stored (distributionbase), allows storing outside of directory cleaned every time accurev plugin.

i don't see why wouldn't safe use shared location. done default, since wrapper stored in gradle user home directory.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -