Skip to content

Commit 1d2ebd4

Browse files
authored
Enable JEP-229 CD (#6)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
1 parent b861932 commit 1d2ebd4

3 files changed

Lines changed: 29 additions & 3 deletions

File tree

.github/workflows/cd.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: cd
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
validate_only:
7+
required: false
8+
type: boolean
9+
description: |
10+
Run validation with release drafter only
11+
→ Skip the release job
12+
default: false
13+
14+
permissions:
15+
checks: read
16+
contents: write
17+
18+
jobs:
19+
maven-cd:
20+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
21+
with:
22+
validate_only: ${{ inputs.validate_only == true || github.event_name == 'check_run' }}
23+
secrets:
24+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
25+
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}

.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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>io.jenkins.plugins</groupId>
1111
<artifactId>safe-batch-environment-filter</artifactId>
12-
<version>${revision}${changelist}</version>
12+
<version>${revision}.${changelist}</version>
1313
<packaging>hpi</packaging>
1414
<name>Safe Batch Environment Filter Plugin</name>
1515
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
@@ -26,8 +26,8 @@
2626
<url>https://github.com/${gitHubRepo}</url>
2727
</scm>
2828
<properties>
29-
<revision>0.2</revision>
30-
<changelist>-SNAPSHOT</changelist>
29+
<revision>0</revision>
30+
<changelist>999999-SNAPSHOT</changelist>
3131
<jenkins.version>2.479.3</jenkins.version>
3232
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
3333
<spotless.check.skip>false</spotless.check.skip>

0 commit comments

Comments
 (0)