From 8cabafe79fad1d461c2f337a9fbfe5046f151f31 Mon Sep 17 00:00:00 2001 From: Carroll Chiou Date: Fri, 6 Jan 2023 13:59:57 -0700 Subject: [PATCH] enable cd (#213) --- .github/dependabot.yml | 10 ++++++++-- .github/release-drafter.yml | 3 --- .github/workflows/cd.yaml | 15 +++++++++++++++ .github/workflows/release-drafter.yml | 22 ---------------------- .mvn/maven.config | 1 + CHANGELOG.md | 2 ++ pom.xml | 5 ++--- 7 files changed, 28 insertions(+), 30 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/dependabot.yml b/.github/dependabot.yml index 04ceb6e8..5d627099 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,12 @@ +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + version: 2 updates: - - package-ecosystem: "maven" + - package-ecosystem: maven directory: "/" schedule: - interval: "weekly" + interval: weekly + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: weekly diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index f1d22202..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,3 +0,0 @@ -_extends: .github -tag-template: ldap-$NEXT_MINOR_VERSION -name-template: LDAP Plugin $NEXT_MINOR_VERSION diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 00000000..0279984d --- /dev/null +++ b/.github/workflows/cd.yaml @@ -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 496f95e8..00000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Note: additional setup is required, see https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc - -name: Release Drafter - -on: - push: - branches: - - master - -permissions: - security-events: read - contents: write - actions: read - -jobs: - update_release_draft: - runs-on: ubuntu-latest - steps: - # Drafts your next Release notes as Pull Requests are merged into the default branch - - uses: release-drafter/release-drafter@v5 - 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/CHANGELOG.md b/CHANGELOG.md index 39cc6fe4..dd10f0df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Changelog +For newer versions, see [GitHub Releases](https://github.com/jenkinsci/ldap-plugin/releases) + ### Version 1.20 (19th Feb 2018) - [JENKINS-48917](https://issues.jenkins-ci.org/browse/JENKINS-48917): diff --git a/pom.xml b/pom.xml index ccb59b04..518c1649 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ ldap - ${revision}${changelist} + ${changelist} hpi LDAP Plugin @@ -23,8 +23,7 @@ - 2.13 - -SNAPSHOT + 999999-SNAPSHOT jenkinsci/${project.artifactId}-plugin 2.0.0.AM25 2.346.1