diff --git a/.github/dependabot.yml b/.github/dependabot.yml index cec0e3f7..4c0e42ad 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,11 @@ version: 2 updates: - - package-ecosystem: "maven" - directory: "/" + - package-ecosystem: maven + directory: / open-pull-requests-limit: 3 schedule: - interval: "daily" + interval: daily + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly \ No newline at end of file diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 2dae2ecf..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,4 +0,0 @@ -_extends: .github -name-template: $NEXT_PATCH_VERSION -tag-template: $NEXT_PATCH_VERSION -version-template: $MAJOR.$MINOR.$PATCH diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 00000000..73f0922f --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,14 @@ +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 }} \ No newline at end of file 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/docs/README.md b/docs/README.md index f9e42f4c..0e2c2ca7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -377,6 +377,20 @@ unclassified: prefix: (string) ``` +## Versioning + +Version tags for this plugin are of the format: + +``` +. +``` + +For example `1.55.v0fcce24a_9501`. + +The `` prefix is incremented to indicate **breaking changes** in the plugin. When this happens, **please read the release notes and test the plugin extra carefully before deploying it to production.** To assist users of the Jenkins Update Center we will also add an `hpi.compatibleSinceVersion` annotation to the POM. + +The `` part is created by the Jenkins [automated plugin release](https://www.jenkins.io/doc/developer/publishing/releasing-cd) system. This is incremented on any non-breaking (minor) change, e.g. new features, bug fixes, or dependency updates. It should normally be safe to adopt these changes straight away. + ## Development ### Git diff --git a/pom.xml b/pom.xml index 7d67027e..4bc4f8af 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.jenkins.plugins aws-secrets-manager-credentials-provider - ${revision}${changelist} + ${revision}.${changelist} hpi AWS Secrets Manager Credentials Provider @@ -41,8 +41,8 @@ - 1.2.1 - -SNAPSHOT + 1 + 999999-SNAPSHOT 8 2.289.3