Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documenting usage of proposed new infra.prepareToPublishIncrementals #13

Merged
merged 1 commit into from Sep 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
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