From 61116b315ba1f062af86b5a006e1a07bbde47fc5 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Thu, 6 Jul 2023 10:06:47 +0200 Subject: [PATCH] Enable CD --- .github/release-drafter.yml | 2 +- .github/workflows/cd.yml | 15 +++++++++++++++ .github/workflows/release-drafter.yml | 14 -------------- .mvn/maven.config | 1 + pom.xml | 11 ++++++----- 5 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/cd.yml delete mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 937c165..3c1ea93 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,3 +1,3 @@ # https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc _extends: .github -tag-template: maven-license-plugin-$NEXT_MINOR_VERSION +tag-template: license-maven-plugin-$NEXT_MINOR_VERSION diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..0279984 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,15 @@ +# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins + +name: cd +on: + workflow_dispatch: + check_run: + types: + - completed + +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 c7834cd..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,14 +0,0 @@ - - -on: - push: - branches: - - master - -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.mvn/maven.config b/.mvn/maven.config index 2a0299c..f7daf60 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 d8b5a5b..54868c4 100644 --- a/pom.xml +++ b/pom.xml @@ -11,11 +11,11 @@ io.jenkins.tools.maven license-maven-plugin - 1.18-SNAPSHOT + ${changelist} maven-plugin License Maven Plugin - https://github.com/jenkinsci/maven-license-plugin + https://github.com/jenkinsci/license-maven-plugin Maven plugin to process license information. @@ -33,6 +33,7 @@ + 999999-SNAPSHOT 3.9.0 3.8.1 UTF-8 @@ -43,9 +44,9 @@ - scm:git:https://github.com/jenkinsci/maven-license-plugin.git - scm:git:git@github.com:jenkinsci/maven-license-plugin.git - https://github.com/jenkinsci/maven-license-plugin + scm:git:https://github.com/jenkinsci/license-maven-plugin.git + scm:git:git@github.com:jenkinsci/license-maven-plugin.git + https://github.com/jenkinsci/license-maven-plugin HEAD