Skip to content

Commit 82ceca8

Browse files
authored
Merge pull request #154 from jglick/cd
Enable CD
2 parents be58e13 + 44e38a7 commit 82ceca8

File tree

5 files changed

+56
-25
lines changed

5 files changed

+56
-25
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/cd.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
2+
#
3+
# Please find additional hints for individual trigger use case
4+
# configuration options inline this script below.
5+
#
6+
name: cd
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
validate_only:
11+
required: false
12+
type: boolean
13+
description: |
14+
Run validation with release drafter only
15+
→ Skip the release job
16+
# Note: Change this default to true,
17+
# if the checkbox should be checked by default.
18+
default: false
19+
# If you don't want any automatic trigger in general, then
20+
# the following check_run trigger lines should all be commented.
21+
# Note: Consider the use case #2 config for 'validate_only' below
22+
# as an alternative option!
23+
check_run:
24+
types:
25+
- completed
26+
27+
permissions:
28+
checks: read
29+
contents: write
30+
31+
jobs:
32+
maven-cd:
33+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
34+
with:
35+
# Comment / uncomment the validate_only config appropriate to your preference:
36+
#
37+
# Use case #1 (automatic release):
38+
# - Let any successful Jenkins build trigger another release,
39+
# if there are merged pull requests of interest
40+
# - Perform a validation only run with drafting a release note,
41+
# if manually triggered AND inputs.validate_only has been checked.
42+
#
43+
validate_only: ${{ inputs.validate_only == true }}
44+
#
45+
# Alternative use case #2 (no automatic release):
46+
# - Same as use case #1 - but:
47+
# - Let any check_run trigger a validate_only run.
48+
# => enforce the release job to be skipped.
49+
#
50+
#validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
51+
secrets:
52+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
53+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

.github/workflows/release-drafter.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.mvn/maven.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-Pconsume-incrementals
22
-Pmight-produce-incrementals
3+
-Dchangelist.format=%d.v%s

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010

1111
<artifactId>reverse-proxy-auth-plugin</artifactId>
12-
<version>${revision}${changelist}</version>
12+
<version>${changelist}</version>
1313
<packaging>hpi</packaging>
1414

1515
<name>Jenkins Reverse Proxy Auth Plugin</name>
@@ -43,8 +43,7 @@
4343
<url>https://github.com/${gitHubRepo}</url>
4444
</scm>
4545
<properties>
46-
<revision>1.8.1</revision>
47-
<changelist>-SNAPSHOT</changelist>
46+
<changelist>999999-SNAPSHOT</changelist>
4847
<gitHubRepo>jenkinsci/${project.artifactId}</gitHubRepo>
4948
<jenkins.baseline>2.479</jenkins.baseline>
5049
<jenkins.version>${jenkins.baseline}.1</jenkins.version>

0 commit comments

Comments
 (0)