Skip to content

Commit 0fdd8c0

Browse files
authored
Incrementalified and enable cd (#48)
1 parent d95f039 commit 0fdd8c0

File tree

5 files changed

+33
-8
lines changed

5 files changed

+33
-8
lines changed

.github/release-drafter.yml

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

.github/workflows/cd.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
jobs:
11+
maven-cd:
12+
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
13+
secrets:
14+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
15+
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.3</version>
6+
</extension>
7+
</extensions>

.mvn/maven.config

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

pom.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,26 @@
1818
<artifactId>snakeyaml-api</artifactId>
1919
<groupId>io.jenkins.plugins</groupId>
2020
<description>This plugin packages stock SnakeYAML library</description>
21-
<version>1.30.2-SNAPSHOT</version>
21+
<version>${revision}-${changelist}</version>
2222
<packaging>hpi</packaging>
2323
<name>SnakeYAML API Plugin</name>
2424
<url>https://github.com/jenkinsci/snakeyaml-api-plugin</url>
2525

2626
<properties>
27+
<revision>1.30</revision>
28+
<changelist>999999-SNAPSHOT</changelist>
2729
<checkstyle.skip>true</checkstyle.skip>
2830
<spotbugs.skip>true</spotbugs.skip>
2931
<maven.javadoc.skip>true</maven.javadoc.skip>
30-
<snakeyaml.version>1.30</snakeyaml.version>
3132
<jenkins.version>2.289.3</jenkins.version>
33+
<githubRepo>jenkinsci/${project.artifactId}-plugin</githubRepo>
3234
</properties>
3335

3436
<dependencies>
3537
<dependency>
3638
<groupId>org.yaml</groupId>
3739
<artifactId>snakeyaml</artifactId>
38-
<version>${snakeyaml.version}</version>
40+
<version>${revision}</version>
3941
<scope>compile</scope>
4042
</dependency>
4143
</dependencies>
@@ -56,8 +58,9 @@
5658
</pluginRepositories>
5759

5860
<scm>
59-
<connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
60-
<developerConnection>scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
61+
<connection>scm:git:git://github.com/${gitHubRepo}.git</connection>
62+
<developerConnection>scm:git:git@github.com:${gitHubRepo}.git</developerConnection>
63+
<url>https://github.com/${gitHubRepo}</url>
6164
<tag>${scmTag}</tag>
6265
</scm>
6366
</project>

0 commit comments

Comments
 (0)