From 71b5abc6fd470892d13fd1dfd49c4f049b365b9f Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Wed, 28 Aug 2019 13:56:27 -0400 Subject: [PATCH] Documenting usage of proposed new infra.prepareToPublishIncrementals. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index a354909..716548c 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,21 @@ as well as the `incrementals.url` and `scmTag` properties, into your parent POM or directly into your repository POM. Some adjustment of `maven-enforcer-plugin` configuration may also be necessary. +### Publishing + +Once Incrementals is enabled in a plugin repository, +the stock `buildPlugin` method takes care of publishing artifacts from stable builds up to date with the base branch. +For libraries or other components with custom `Jenkinsfile`s, you will need to set this up manually: + +```groovy +node('maven') { + checkout scm + sh 'mvn -Dset.changelist install' + infra.prepareToPublishIncrementals() +} +infra.maybePublishIncrementals() +``` + ## Offline testing If you wish to test usage offline, run