From 882acb059bbe248a60e269b594de8f6be61de775 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Wed, 22 Nov 2023 05:34:18 -0700 Subject: [PATCH] Enable continuous delivery Switch from individual plugin releases to use continuous delivery so that each time a bug fix or an enhancement is merged, a new release will be delivered. https://www.jenkins.io/doc/developer/publishing/releasing-cd/ --- .github/release-drafter.yml | 3 --- .github/workflows/cd.yaml | 19 +++++++++++++++++++ .github/workflows/release-drafter.yml | 12 ------------ .mvn/maven.config | 1 + pom.xml | 5 ++--- 5 files changed, 22 insertions(+), 18 deletions(-) delete mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/cd.yaml delete mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index e383ff10..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,3 +0,0 @@ -# https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc -_extends: .github -tag-template: parameterized-trigger-$NEXT_MINOR_VERSION diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 00000000..f3717736 --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,19 @@ +# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins + +name: cd +on: + workflow_dispatch: + check_run: + types: + - completed + +permissions: + checks: read + contents: write + +jobs: + maven-cd: + uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1 + secrets: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 93a5521d..00000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Release Drafter -on: - push: - branches: - - master -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5.25.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.mvn/maven.config b/.mvn/maven.config index 2a0299c4..f7daf60d 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -1,2 +1,3 @@ -Pconsume-incrementals -Pmight-produce-incrementals +-Dchangelist.format=%d.v%s diff --git a/pom.xml b/pom.xml index b6365140..edd05c99 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ parameterized-trigger hpi - ${revision}${changelist} + ${changelist} Jenkins Parameterized Trigger plugin https://github.com/jenkinsci/parameterized-trigger-plugin @@ -151,8 +151,7 @@ - 2.47 - -SNAPSHOT + 999999-SNAPSHOT jenkinsci/parameterized-trigger-plugin 2.387.3 Max