Skip to content

Commit

Permalink
Setup fully automated versioning CD (#276)
Browse files Browse the repository at this point in the history
* Setup fully automated versioning CD

* Apply suggestions from code review

Co-authored-by: Alexander Brandes <brandes.alexander@web.de>

---------

Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
  • Loading branch information
michael-doubez and NotMyFault committed Mar 17, 2024
1 parent 19a8778 commit 22331f0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Expand Up @@ -14,3 +14,7 @@ updates:
# Checkstyle >=10 requires Java 11+
- dependency-name: "com.puppycrawl.tools:checkstyle"
versions: [">= 10.0"]
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
2 changes: 0 additions & 2 deletions .github/release-drafter.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .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 }}
1 change: 1 addition & 0 deletions .mvn/maven.config
@@ -1,2 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -8,8 +8,8 @@
</parent>

<properties>
<revision>3.1</revision>
<changelist>-SNAPSHOT</changelist>
<revision>4</revision>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/oic-auth-plugin</gitHubRepo>
<jenkins.version>2.361</jenkins.version>
<spotbugs.failOnError>true</spotbugs.failOnError>
Expand All @@ -18,7 +18,7 @@
</properties>

<artifactId>oic-auth</artifactId>
<version>${revision}${changelist}</version>
<version>${revision}.${changelist}</version>
<packaging>hpi</packaging>

<scm>
Expand Down

0 comments on commit 22331f0

Please sign in to comment.