Skip to content

Commit 9acfdb3

Browse files
committed
Enable CD
1 parent 74bcebc commit 9acfdb3

File tree

7 files changed

+42
-24
lines changed

7 files changed

+42
-24
lines changed

.github/dependabot.yml

+10
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: monthly
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: monthly

.github/release-drafter.yml

-2
This file was deleted.

.github/workflows/cd.yaml

+15
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 }}

.github/workflows/release-drafter.yml

-17
This file was deleted.

.mvn/extensions.xml

+7
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.4</version>
6+
</extension>
7+
</extensions>

.mvn/maven.config

+3
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

+7-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>org.jenkins-ci.test</groupId>
1111
<artifactId>docker-fixtures</artifactId>
12-
<version>1.13-SNAPSHOT</version>
12+
<version>${changelist}</version>
1313
<name>Docker Fixtures</name>
1414
<description>Docker rule for JUnit.</description>
1515
<repositories>
@@ -31,10 +31,10 @@
3131
</license>
3232
</licenses>
3333
<scm>
34-
<connection>scm:git:ssh://github.com/jenkinsci/docker-fixtures.git</connection>
35-
<developerConnection>scm:git:ssh://[email protected]/jenkinsci/docker-fixtures.git</developerConnection>
36-
<url>https://github.com/jenkinsci/docker-fixtures</url>
37-
<tag>HEAD</tag>
34+
<connection>scm:git:ssh://github.com/${gitHubRepo}.git</connection>
35+
<developerConnection>scm:git:ssh://[email protected]/${gitHubRepo}.git</developerConnection>
36+
<url>https://github.com/${gitHubRepo}</url>
37+
<tag>${scmTag}</tag>
3838
</scm>
3939
<build>
4040
<plugins>
@@ -50,6 +50,8 @@
5050
</plugins>
5151
</build>
5252
<properties>
53+
<changelist>999999-SNAPSHOT</changelist>
54+
<gitHubRepo>jenkinsci/docker-fixtures</gitHubRepo>
5355
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5456
<spotbugs.failOnError>false</spotbugs.failOnError> <!-- TODO -->
5557
</properties>

0 commit comments

Comments
 (0)