This Extension still in development.
The tasks in this extension allow for running JReleaser commands from Azure Pipelines.
JReleaser is a release automation tool. Its goal is to simplify creating releases and publishing artifacts to multiple package managers while providing customizable options.
supports any kind of project regardless of its source language (Java, Node, Rust, Perl, Python, C/C++, C#, Elixir, Haskell, etc)
The following commands are supported:
customjreleaser:envjreleaser:initjreleaser:configjreleaser:templatejreleaser:template evaljreleaser:downloadjreleaser:assemblejreleaser:changelogjreleaser:catalogjreleaser:checksumjreleaser:signjreleaser:deployjreleaser:uploadjreleaser:releasejreleaser:preparejreleaser:packagejreleaser:announcejreleaser:full-release
Before running the JReleaser task, you can run the JReleaser Installer task to download JReleaser.
## Use the latest version of JReleaser
- task: JReleaserInstaller@0
inputs:
version: 'latest'
## Use the specific version of JReleaser
- task: JReleaserInstaller@0
inputs:
version: '1.7.0'The JReleaser task can be used to run any JReleaser command.
The following example shows how to run the init command.
- task: JReleaserInvoker@0
inputs:
command: 'release'
customArguments: '--prerelease'
logLevel: 'quiet'if you want to run a custom JReleaser command, you can use the custom command.
- task: JReleaserInvoker@0
inputs:
command: 'custom'
arguments: '-D=jreleaser.github.token=1234'
logLevel: 'info'In the Azure pipeline project below URL, you can see the example of using the JReleaser for Azure Pipelines.
Example: https://dev.azure.com/jreleaser/jreleaser-azure-devops-extension-example/_build
or this repository also uses the JReleaser for Azure Pipelines in azure-pipelines-release-github.yml
### JReleaser for Azure Pipelines Example
- task: JReleaserInstaller@0
inputs:
version: '1.5.1'
- task: JReleaserInvoker@0
env:
JRELEASER_GITHUB_TOKEN: $(JRELEASER_GITHUB_TOKEN)
JRELEASER_PROJECT_VERSION: ${{ parameters.version}}
JRELEASER_TAG_NAME: ${{ parameters.version}}
inputs:
command: 'release'