Skip to content

Commit e5f3e23

Browse files
committed
fix: using JGit 7 (refs #88)
1 parent 943988a commit e5f3e23

File tree

4 files changed

+55
-8
lines changed

4 files changed

+55
-8
lines changed

debug.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
mvn versions:update-properties
3-
mvnDebug hpi:run -Djava.util.logging.config.file=logging.properties -Djenkins.version=2.249.2 -Denforcer.skip=true
3+
mvnDebug hpi:run -Djava.util.logging.config.file=logging.properties -Djenkins.version=2.462.1 -Denforcer.skip=true

doc/test-pipeline.groovy

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
node {
2+
deleteDir()
3+
sh """
4+
git clone [email protected]:jenkinsci/git-changelog-plugin.git .
5+
"""
6+
7+
def changelogString = gitChangelog returnType: 'STRING',
8+
from: [type: 'REF', value: 'git-changelog-1.50'],
9+
to: [type: 'REF', value: 'master'],
10+
template: """
11+
# Changelog
12+
13+
Changelog for {{ownerName}} {{repoName}}.
14+
15+
{{#tags}}
16+
## {{name}}
17+
{{#issues}}
18+
{{#hasIssue}}
19+
{{#hasLink}}
20+
### {{name}} [{{issue}}]({{link}}) {{title}} {{#hasIssueType}} *{{issueType}}* {{/hasIssueType}} {{#hasLabels}} {{#labels}} *{{.}}* {{/labels}} {{/hasLabels}}
21+
{{/hasLink}}
22+
{{^hasLink}}
23+
### {{name}} {{issue}} {{title}} {{#hasIssueType}} *{{issueType}}* {{/hasIssueType}} {{#hasLabels}} {{#labels}} *{{.}}* {{/labels}} {{/hasLabels}}
24+
{{/hasLink}}
25+
{{/hasIssue}}
26+
{{^hasIssue}}
27+
### {{name}}
28+
{{/hasIssue}}
29+
30+
{{#commits}}
31+
**{{{messageTitle}}}**
32+
33+
{{#messageBodyItems}}
34+
* {{.}}
35+
{{/messageBodyItems}}
36+
37+
[{{hash}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}} *{{commitTime}}*
38+
39+
{{/commits}}
40+
41+
{{/issues}}
42+
{{/tags}}
43+
"""
44+
45+
currentBuild.description = changelogString
46+
}

pom.xml

+7-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>4.74</version>
8+
<version>4.87</version>
99
</parent>
1010

1111
<properties>
12-
<jenkins.version>2.361.4</jenkins.version>
12+
<jenkins.version>2.462.1</jenkins.version>
13+
<maven.compiler.release>17</maven.compiler.release>
1314
<maven.javadoc.skip>true</maven.javadoc.skip>
14-
<violations.version>2.0.0</violations.version>
15-
<changelog-lib>2.1.0</changelog-lib>
15+
<violations.version>2.1.0</violations.version>
16+
<changelog-lib>2.2.0</changelog-lib>
1617
<changelog-plugin>2.1.0</changelog-plugin>
1718
</properties>
1819

@@ -257,8 +258,8 @@
257258
<dependencies>
258259
<dependency>
259260
<groupId>io.jenkins.tools.bom</groupId>
260-
<artifactId>bom-2.361.x</artifactId>
261-
<version>2102.v854b_fec19c92</version>
261+
<artifactId>bom-2.462.x</artifactId>
262+
<version>3358.vea_fa_1f41504d</version>
262263
<scope>import</scope>
263264
<type>pom</type>
264265
</dependency>

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
./mvnw versions:update-properties
3-
./mvnw hpi:run -Djava.util.logging.config.file=logging.properties -Djenkins.version=2.401.2 -Denforcer.skip=true
3+
./mvnw hpi:run -Djava.util.logging.config.file=logging.properties -Djenkins.version=2.462.1 -Denforcer.skip=true

0 commit comments

Comments
 (0)