GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jreleaser/jreleaser-azure-devops-extension: JReleaser Azure DevOps Extension

BranchesTags
Open more actions menu

Latest commit

 

History

127 Commits
127 Commits

Folders and files

NameName
Last commit message
Last commit date
images
images
 
 
screenshots
screenshots
 
 
scripts
scripts
 
 
tasks
tasks
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
azure-pipelines-build.yml
azure-pipelines-build.yml
 
 
azure-pipelines-publish-release.yml
azure-pipelines-publish-release.yml
 
 
azure-pipelines-release-github.yml
azure-pipelines-release-github.yml
 
 
jreleaser-azure-devops-extension.json
jreleaser-azure-devops-extension.json
 
 
jreleaser.yml
jreleaser.yml
 
 
package.json
package.json
 
 

Repository files navigation

JReleaser Azure Pipelines Extension

Build: Build Status

Overview

This extension provides Azure Pipelines tasks for installing and running JReleaser.

JReleaser automates releases, checksums, signatures, changelogs, package descriptors, and published artifacts for projects written in Java, Node, Rust, Go, Python, C/C++, C#, and other languages.

Prerequisites

  • A jreleaser.yml, jreleaser.toml, or jreleaser.json configuration file in your repository.
  • Azure Pipeline secret variables for credentials such as JRELEASER_GITHUB_TOKEN.

JReleaserInstaller@0 installs the standalone JReleaser distribution, which includes its own Java runtime.

Quick Start

Start with a dry run to validate your configuration before performing remote release, upload, deploy, publish, or announce operations.

steps:
- task: JReleaserInstaller@0
  inputs:
    version: '1.23.0'

- task: JReleaserInvoker@0
  inputs:
    command: 'fullRelease'
    configFile: '$(System.DefaultWorkingDirectory)/jreleaser.yml'
    dryRun: true
    logLevel: 'info'

Run a Release

Remove dryRun after the release configuration has been validated. Pass credentials through env.

steps:
- task: JReleaserInstaller@0
  inputs:
    version: '1.23.0'

- task: JReleaserInvoker@0
  env:
    JRELEASER_GITHUB_TOKEN: $(JRELEASER_GITHUB_TOKEN)
    JRELEASER_PROJECT_VERSION: $(Build.BuildNumber)
    JRELEASER_TAG_NAME: $(JRELEASER_TAG_NAME)
  inputs:
    command: 'fullRelease'
    configFile: '$(System.DefaultWorkingDirectory)/jreleaser.yml'
    logLevel: 'info'

Pass Secrets Safely

Pass tokens and credentials through Azure Pipeline secret variables and the task env block. Do not put secrets in arguments or properties, because command-line arguments can appear in logs.

steps:
- task: JReleaserInvoker@0
  env:
    JRELEASER_GITHUB_TOKEN: $(JRELEASER_GITHUB_TOKEN)
    JRELEASER_GPG_PASSPHRASE: $(JRELEASER_GPG_PASSPHRASE)
  inputs:
    command: 'release'
    configFile: '$(System.DefaultWorkingDirectory)/jreleaser.yml'

Pass Additional Arguments

Use arguments for options that are not exposed as first-class task inputs.

steps:
- task: JReleaserInvoker@0
  inputs:
    command: 'release'
    configFile: '$(System.DefaultWorkingDirectory)/jreleaser.yml'
    arguments: '--settings-file "$(System.DefaultWorkingDirectory)/jreleaser.properties"'
    logLevel: 'info'

For a fully custom command, include the JReleaser command name in arguments.

steps:
- task: JReleaserInvoker@0
  inputs:
    command: 'custom'
    arguments: 'env --settings-file "$(System.DefaultWorkingDirectory)/jreleaser.properties"'

Use Output Properties

Enable exportOutputProperties to export values from out/jreleaser/output.properties as Azure Pipelines output variables after a successful command. Property keys are normalized and prefixed with JRELEASER_, for example project.version becomes JRELEASER_PROJECT_VERSION.

The task logs exported variable names only. Azure Pipelines output variables are still set through the standard task.setvariable command, so the variable value is passed to Azure Pipelines as part of that command. Do not use this for sensitive values; keys that look secret-like are skipped automatically.

exportOutputProperties is not supported with the custom command because custom arguments can choose a different base directory. The task logs a warning and skips export in that case.

steps:
- task: JReleaserInvoker@0
  name: jreleaser
  inputs:
    command: 'fullRelease'
    configFile: '$(System.DefaultWorkingDirectory)/jreleaser.yml'
    exportOutputProperties: true

- script: echo "$(jreleaser.JRELEASER_PROJECT_VERSION)"

For a downstream job, map the output through dependencies:

jobs:
- job: release
  steps:
  - task: JReleaserInvoker@0
    name: jreleaser
    inputs:
      command: 'fullRelease'
      configFile: '$(System.DefaultWorkingDirectory)/jreleaser.yml'
      exportOutputProperties: true

- job: notify
  dependsOn: release
  variables:
    jreleaserVersion: $[ dependencies.release.outputs['jreleaser.JRELEASER_PROJECT_VERSION'] ]
  steps:
  - script: echo "$(jreleaserVersion)"

Tasks

JReleaser Installer

JReleaserInstaller@0 downloads a JReleaser distribution from the official JReleaser GitHub releases. On a cache miss, it verifies the downloaded archive checksum, caches the archive in the Azure Pipelines tool cache, and adds jreleaser to PATH.

steps:
- task: JReleaserInstaller@0
  inputs:
    version: 'latest'

Pin a specific JReleaser version for repeatable builds:

steps:
- task: JReleaserInstaller@0
  inputs:
    version: '1.23.0'

JReleaser Invoker

JReleaserInvoker@0 runs a JReleaser command. Use it after JReleaserInstaller@0 or after another step has made jreleaser available on PATH.

Common inputs:

Input Description
command JReleaser command to run.
configFile Path to the JReleaser configuration file.
dryRun Skip remote operations for supported commands.
exportOutputProperties Export out/jreleaser/output.properties as Azure Pipelines output variables.
arguments Extra command-line arguments passed to JReleaser.
logLevel One of debug, info, warn, or quiet.

Supported Commands

Use these values in the command input.

Input value JReleaser command
announce jreleaser announce
assemble jreleaser assemble
catalog jreleaser catalog
changelog jreleaser changelog
checksum jreleaser checksum
config jreleaser config
custom Arguments are passed directly to jreleaser
deploy jreleaser deploy
download jreleaser download
env jreleaser env
fullRelease jreleaser full-release
init jreleaser init
jsonSchema jreleaser json-schema
package jreleaser package
prepare jreleaser prepare
publish jreleaser publish
release jreleaser release
sign jreleaser sign
templateEval jreleaser template eval
templateGenerate jreleaser template generate
upload jreleaser upload

CI validation

The existing Azure Build pipeline and the manual release pipeline share the same build and test stages:

  • Build installs locked dependencies with npm ci, runs both task test suites, and runs the package smoke regression tests against the assembled task artifacts. It then creates one VSIX.
  • Test downloads that same VSIX on Ubuntu 24.04 and Windows Server 2022, with Node 16, 20, and 24. Each job verifies installation, checksums, cache reuse, executable paths, and Invoker success/failure using JReleaser 1.26.0. Logs are saved as Smoke-<OS>-Node<version>-<JobId> pipeline artifacts so reruns preserve each attempt's logs without name collisions.
  • The manual release pipeline publishes the tested VSIX only after every test job succeeds. It does not repackage it.

Normal CI packages use version 0.0.<BuildId>. Release builds require a version tag and apply that version before packaging and testing. Pushing a commit does not publish an extension.

To run the smoke regression tests locally after installing dependencies in both task directories:

npm run test:smoke

Roadmap

Possible future improvements:

  • Additional common CLI inputs such as settingsFile, outputDirectory, reproducible, and yolo.
  • A single task that installs and runs JReleaser in one step.

About

JReleaser Azure DevOps Extension

marketplace.visualstudio.com/items?itemName=JReleaser.jreleaser-azure-devops-extension

Topics

azureazure-devopsdevopsjreleaser

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.