I thought it would be helpful for our users (and for ourselves) to turn our
manual dists and docs CI build into a nightly build so that once a day:

- The latest doc is uploaded to the website
- The latest binaries are Upload the snapshot binaries/dists to our repo

I did the following changes to achieve this:

- Define a nightly trigger for the CI docs & dists build
- Before my changes the wrapper is using the latest dist from the
distributions/gradle-snapshots repo. Those snapshots are handpicked and we
have to keep them for historical builds. That is the reason why we don't
upload daily.

First, for consistency with the general repo naming schema we have, I have
added a distinct distributions-snapshots repo instead of a gradle-snapshots
subdirectory in the distributions repo. For backwards compatibility we leave
the current distributions/gradle-snapshots untouched but shouldn't use it
anymore. I have added another repo called wrapper-snapshots. The repo
distributions-snapshots
is used for uploading the nightly dists. If we want to use a certain
snapshot for our wrapper build we can go to Artifactory, select the
snapshot, click copy and specify wrapper-snapshots as the destination. I
would like to define a cleaning strategy for distributions-snapshots (e.g.
everything older than 30 days) but don't know how to do this yet.

We might also write a task that copies the latest from
distributions-snapshots into wrapper-snapshots.

Hans

--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleware
CEO, Gradleware - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to