Skip to content

Commit

Permalink
Merge pull request #13 from jglick/prepareToPublishIncrementals
Browse files Browse the repository at this point in the history
Documenting usage of proposed new infra.prepareToPublishIncrementals
  • Loading branch information
jglick authored Sep 3, 2019
2 parents 9a96211 + 71b5abc commit 66607ac
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 66607ac

Please sign in to comment.