Skip to content

Commit

Permalink
Documenting usage of proposed new infra.prepareToPublishIncrementals.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Aug 28, 2019
1 parent 9a96211 commit 71b5abc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71b5abc

Please sign in to comment.