Skip to content

Commit

Permalink
Enable automated plugin releases (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskilding authored Aug 30, 2022
1 parent 3dcdb98 commit 8f90ad7
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions .github/release-drafter.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
14 changes: 14 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,20 @@ unclassified:
prefix: (string)
```
## Versioning
Version tags for this plugin are of the format:
```
<major>.<autogenerated>
```

For example `1.55.v0fcce24a_9501`.

The `<major>` 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 `<autogenerated>` 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
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>io.jenkins.plugins</groupId>
<artifactId>aws-secrets-manager-credentials-provider</artifactId>
<version>${revision}${changelist}</version>
<version>${revision}.${changelist}</version>
<packaging>hpi</packaging>

<name>AWS Secrets Manager Credentials Provider</name>
Expand Down Expand Up @@ -41,8 +41,8 @@
</scm>

<properties>
<revision>1.2.1</revision>
<changelist>-SNAPSHOT</changelist>
<revision>1</revision>
<changelist>999999-SNAPSHOT</changelist>
<java.level>8</java.level>
<jenkins.version>2.289.3</jenkins.version>
</properties>
Expand Down

0 comments on commit 8f90ad7

Please sign in to comment.