Skip to content

Commit 43a5fea

Browse files
authored
Merge pull request #2 from jenkinsci/prepareReleaseProcess
Setting up project for CD
2 parents 838f492 + 7ccd5da commit 43a5fea

File tree

4 files changed

+59
-3
lines changed

4 files changed

+59
-3
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ updates:
55
- package-ecosystem: maven
66
directory: /
77
schedule:
8-
interval: monthly
8+
interval: weekly
99
- package-ecosystem: github-actions
1010
directory: /
1111
schedule:
12-
interval: monthly
12+
interval: weekly

.github/workflows/cd.yaml

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

1414
<groupId>io.jenkins.plugins</groupId>
1515
<artifactId>ibmi-steps</artifactId>
16-
<version>0.0.1-SNAPSHOT</version>
16+
<version>${changelist}</version>
1717
<packaging>hpi</packaging>
1818

1919
<name>IBM i Pipeline Steps</name>
@@ -47,6 +47,7 @@
4747
</scm>
4848

4949
<properties>
50+
<changelist>999999-SNAPSHOT</changelist>
5051
<gitHubRepo>jenkinsci/ibmi-steps-plugin</gitHubRepo>
5152
<jenkins.baseline>2.479</jenkins.baseline>
5253
<jenkins.version>${jenkins.baseline}.1</jenkins.version>

0 commit comments

Comments
 (0)