Skip to content

Commit e6e72c9

Browse files
authored
Merge pull request #488 from jenkinsci/dependabot/maven/org.jenkins-ci.main-jenkins-core-2.354
Bump jenkins-core from 2.338 to 2.354
2 parents aea2436 + 4d765fa commit e6e72c9

File tree

13 files changed

+182
-53
lines changed

13 files changed

+182
-53
lines changed

plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<!-- Library Dependencies Versions -->
2727
<eclipse-collections.version>9.2.0</eclipse-collections.version>
28-
<forensics-api-plugin.version>1.14.0</forensics-api-plugin.version>
28+
<forensics-api-plugin.version>1.15.1</forensics-api-plugin.version>
2929
<data-tables-api.version>1.11.4-4</data-tables-api.version>
3030
<testcontainers.version>1.17.1</testcontainers.version>
3131
</properties>

plugin/src/main/resources/io/jenkins/plugins/forensics/git/reference/GitCommitsRecord/summary.jelly

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
<j:jelly xmlns:j="jelly:core" xmlns:t="/lib/hudson">
33

44
<t:summary icon="/plugin/git-forensics/icons/git-icon.svg">
5-
SCM: ${it.scmKey}
6-
<ul>
7-
<j:choose>
8-
<j:when test="${it.isFirstBuild()}">
9-
<li>Initial recording of ${size(it)} commits</li>
10-
</j:when>
11-
<j:otherwise>
12-
<li>Commits since last build: ${size(it)}</li>
13-
</j:otherwise>
145

15-
</j:choose>
16-
<li>Latest commit: <j:out value="${it.latestCommitLink}"/></li>
17-
</ul>
6+
<span id="commits-of-${it.scmKey.hashCode()}">
7+
SCM: ${it.scmKey}
8+
<ul>
9+
<j:choose>
10+
<j:when test="${it.isFirstBuild()}">
11+
<li>Initial recording of ${size(it)} commits</li>
12+
</j:when>
13+
<j:otherwise>
14+
<li>Commits since last build: ${size(it)}</li>
15+
</j:otherwise>
16+
17+
</j:choose>
18+
<li>Latest commit:
19+
<j:out value="${it.latestCommitLink}"/>
20+
</li>
21+
</ul>
22+
</span>
1823

1924
</t:summary>
2025

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package ${package};
2+
3+
/**
4+
* Entry point for assertions of different data types. Each method in this class is a static factory for the
5+
* type-specific assertion objects.
6+
*/
7+
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("NM")
8+
@javax.annotation.Generated(value="assertj-assertions-generator")
9+
public class Assertions extends org.assertj.core.api.Assertions {
10+
${all_assertions_entry_points}
11+
/**
12+
* Creates a new <code>{@link Assertions}</code>.
13+
*/
14+
protected Assertions() {
15+
// empty
16+
}
17+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
/**
3+
* Verifies that the actual ${class_to_assert}'s ${property} is equal to the given one.
4+
* @param ${property_safe} the given ${property} to compare the actual ${class_to_assert}'s ${property} to.
5+
* @return this assertion object.
6+
* @throws AssertionError - if the actual ${class_to_assert}'s ${property} is not equal to the given one.${throws_javadoc}
7+
*/
8+
public ${self_type} has${Property}(${propertyType} ${property_safe}) ${throws}{
9+
// check that actual ${class_to_assert} we want to make assertions on is not null.
10+
isNotNull();
11+
12+
// overrides the default error message with a more explicit one
13+
String assertjErrorMessage = "\nExpecting ${property} of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
14+
15+
// null safe check
16+
${propertyType} actual${Property} = actual.${getter}();
17+
if (!java.util.Objects.deepEquals(actual${Property}, ${property_safe})) {
18+
failWithMessage(assertjErrorMessage, actual, ${property_safe}, actual${Property});
19+
}
20+
21+
// return the current assertion for method chaining
22+
return ${myself};
23+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package ${package};
2+
3+
/**
4+
* Entry point for soft assertions of different data types.
5+
*/
6+
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("NM")
7+
@javax.annotation.Generated(value="assertj-assertions-generator")
8+
public class SoftAssertions extends org.assertj.core.api.AutoCloseableSoftAssertions {
9+
${all_assertions_entry_points}
10+
}

ui-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<name>UI Tests of Git Forensics Plugin</name>
1717

1818
<properties>
19-
<jenkins.version>2.338</jenkins.version>
19+
<jenkins.version>2.354</jenkins.version>
2020
<module.name>${project.groupId}.git.forensics.ui.tests</module.name>
2121
</properties>
2222

ui-tests/src/main/java/io/jenkins/plugins/forensics/DetailsTable.java renamed to ui-tests/src/main/java/io/jenkins/plugins/forensics/git/DetailsTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.jenkins.plugins.forensics;
1+
package io.jenkins.plugins.forensics.git;
22

33
import java.util.ArrayList;
44
import java.util.Collections;

ui-tests/src/main/java/io/jenkins/plugins/forensics/DetailsTableRow.java renamed to ui-tests/src/main/java/io/jenkins/plugins/forensics/git/DetailsTableRow.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.jenkins.plugins.forensics;
1+
package io.jenkins.plugins.forensics.git;
22

33
import java.util.Arrays;
44
import java.util.List;
@@ -8,7 +8,7 @@
88

99
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
1010

11-
import static io.jenkins.plugins.forensics.DetailsTable.*;
11+
import static io.jenkins.plugins.forensics.git.DetailsTable.*;
1212

1313
/**
1414
* Describes one row in the DetailsTable on the ScmForensics Page.

ui-tests/src/main/java/io/jenkins/plugins/forensics/ForensicsPublisher.java renamed to ui-tests/src/main/java/io/jenkins/plugins/forensics/git/ForensicsPublisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.jenkins.plugins.forensics;
1+
package io.jenkins.plugins.forensics.git;
22

33
import org.jenkinsci.test.acceptance.po.AbstractStep;
44
import org.jenkinsci.test.acceptance.po.Describable;

ui-tests/src/main/java/io/jenkins/plugins/forensics/ScmForensics.java renamed to ui-tests/src/main/java/io/jenkins/plugins/forensics/git/ScmForensics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.jenkins.plugins.forensics;
1+
package io.jenkins.plugins.forensics.git;
22

33
import java.net.URL;
44

0 commit comments

Comments
 (0)