Skip to content

Commit ebf31aa

Browse files
authored
setup the cd for plugin (#168)
* setup the cd for plugin * add missing setting for the cd
1 parent 3f5e152 commit ebf31aa

File tree

5 files changed

+42
-3
lines changed

5 files changed

+42
-3
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: weekly

.github/workflows/cd.yaml

Lines changed: 19 additions & 0 deletions
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 }}

.mvn/extensions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
2+
<extension>
3+
<groupId>io.jenkins.tools.incrementals</groupId>
4+
<artifactId>git-changelist-maven-extension</artifactId>
5+
<version>1.6</version>
6+
</extension>
7+
</extensions>

.mvn/maven.config

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

pom.xml

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

1010
<artifactId>localization-zh-cn</artifactId>
11-
<version>1.0.26-SNAPSHOT</version>
11+
<version>${changelist}</version>
1212
<packaging>hpi</packaging>
1313
<name>Localization: Chinese (Simplified)</name>
1414
<url>https://github.com/jenkinsci/localization-zh-cn-plugin</url>
@@ -17,11 +17,12 @@
1717
<connection>scm:git:ssh://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
1818
<developerConnection>scm:git:[email protected]:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
1919
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
20-
<tag>localization-zh-cn-1.0.25</tag>
20+
<tag>${scmTag}</tag>
2121
</scm>
2222

2323
<properties>
2424
<jenkins.version>2.387.3</jenkins.version>
25+
<changelist>999999-SNAPSHOT</changelist>
2526
</properties>
2627

2728
<repositories>

0 commit comments

Comments
 (0)