Skip to content

Commit fa6e89d

Browse files
author
Mikhail Marchenko
committed
Enable CD
1 parent 4091b93 commit fa6e89d

File tree

9 files changed

+73
-106
lines changed

9 files changed

+73
-106
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
2+
---
3+
version: 2
4+
updates:
5+
- package-ecosystem: maven
6+
directory: /
7+
schedule:
8+
interval: monthly
9+
- package-ecosystem: github-actions
10+
directory: /
11+
schedule:
12+
interval: monthly

.github/dependabot.yml.disabled

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

.github/release-drafter.yml

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

.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 }}

.github/workflows/update-release-draft.yml

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

.github/workflows/upload-release-artifact.yml

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

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<extension>
44
<groupId>io.jenkins.tools.incrementals</groupId>
55
<artifactId>git-changelist-maven-extension</artifactId>
6-
<version>1.6</version>
6+
<version>1.8</version>
77
</extension>
88
</extensions>

.mvn/maven.config

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

pom.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>4.66</version>
8+
<version>4.88</version>
99
<relativePath />
1010
</parent>
1111

1212
<properties>
13-
<revision>1.7.1</revision>
14-
<changelist>-SNAPSHOT</changelist>
13+
<changelist>999999-SNAPSHOT</changelist>
1514
<!-- Baseline Jenkins version you use to build the plugin. Users must have this version or newer to run. -->
1615
<jenkins.version>2.387.1</jenkins.version>
1716
<bom.artifactId>2.387.x</bom.artifactId>
@@ -29,8 +28,8 @@
2928
<groupId>io.jenkins.plugins</groupId>
3029
<artifactId>rest-list-parameter</artifactId>
3130
<inceptionYear>2020</inceptionYear>
32-
<url>https://github.com/jenkinsci/${project.artifactId}-plugin/blob/${project.artifactId}-${revision}/README.adoc</url>
33-
<version>${revision}${changelist}</version>
31+
<!--url>https://github.com/jenkinsci/${project.artifactId}-plugin/blob/${project.artifactId}-${revision}/README.adoc</url-->
32+
<version>${changelist}</version>
3433
<packaging>hpi</packaging>
3534

3635
<licenses>

0 commit comments

Comments
 (0)