Skip to content

Commit

Permalink
Enable Release Drafter (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Mar 19, 2023
1 parent 2dd0dbe commit 75e41e3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @jenkinsci/job-dsl-plugin-developers
* @jenkinsci/job-dsl-plugin-developers
3 changes: 3 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc
_extends: .github
tag-template: job-dsl-$NEXT_MINOR_VERSION
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Automates creation of Release Drafts using Release Drafter
# More Info: https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc

on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 2 additions & 4 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
These are the steps to release the Maven-based Job DSL plugin.

* Ensure you have the latest code from origin: `git pull origin`
* Make sure tests still run: `mvn clean verify`
* Run locally to perform sanity check: `mvn hpi:run`
* Set `compatibleSinceVersion` to the new version if deprecated features have been removed
* File a pull request to update the release notes, setting the release date: `* 1.14 (Mar 31 2013)`
* Prepare and perform the release: `mvn release:prepare release:perform`
* File a pull request to update the release notes, adding the next version: `* 1.15 (unreleased)`
* Edit the [draft release notes](https://github.com/jenkinsci/job-dsl-plugin/releases) and publish them
* Close all resolved issues in [JIRA](https://issues.jenkins-ci.org/secure/Dashboard.jspa?selectPageId=15341)
* Open a pull request to update the [Job DSL Playground](https://github.com/sheehan/job-dsl-playground)
* Open a pull request to update the [Job DSL Playground](https://github.com/sheehan/job-dsl-playground)
* Open a pull request to update the [Job DSL Gradle Example](https://github.com/sheehan/job-dsl-gradle-example)
* Open a pull request to update the [Job DSL Sample](https://github.com/unguiculus/job-dsl-sample)
* Wait up to twelve hours for it show up in the Update Center
Expand Down
2 changes: 1 addition & 1 deletion docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ scripts, including [[tests for DSL scripts|Testing DSL Scripts]] and [[IDE Suppo
Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins-ci.org/issues/?filter=15140).

## Release Notes
* 1.82 (Unreleased)
* Release notes for versions >= 1.82 can be found on the [GitHub releases page](https://github.com/jenkinsci/job-dsl-plugin/releases).
* 1.81.1 (March 13 2023)
* Internal dependency management updates
* Fix concurrent modification exception in ExecuteDslScripts ([GH-1253](https://github.com/jenkinsci/job-dsl-plugin/pull/1253) [JENKINS-69064](https://issues.jenkins.io/browse/JENKINS-69064)).
Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- Keep the tag names aligned with previous releases -->
<tagNameFormat>job-dsl-@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
Expand Down

0 comments on commit 75e41e3

Please sign in to comment.