Skip to content

Commit bdfc72e

Browse files
authored
Enable automated plugin release (#130)
1 parent a59227f commit bdfc72e

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

.github/release-drafter.yml

-2
This file was deleted.

.github/workflows/cd.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins
2+
---
3+
name: cd
4+
on:
5+
workflow_dispatch:
6+
check_run:
7+
types:
8+
- completed
9+
10+
permissions:
11+
checks: read
12+
contents: write
13+
14+
jobs:
15+
maven-cd:
16+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
17+
secrets:
18+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
19+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

.github/workflows/release-drafter.yml

-12
This file was deleted.

.mvn/maven.config

+1
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

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
</parent>
1010

1111
<artifactId>pubsub-light</artifactId>
12-
<version>${revision}${changelist}</version>
12+
<version>${changelist}</version>
1313
<packaging>hpi</packaging>
1414

1515
<name>Jenkins Pub-Sub "light" Bus</name>
1616
<description>A simple Publish-Subscribe light-weight event bus for Jenkins</description>
1717
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
1818

1919
<properties>
20-
<revision>1.19</revision>
21-
<changelist>-SNAPSHOT</changelist>
20+
<changelist>999999-SNAPSHOT</changelist>
2221
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
2322
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
2423
<jenkins.baseline>2.361</jenkins.baseline>

0 commit comments

Comments
 (0)