Skip to content

Commit 9969123

Browse files
authored
Require 2.479.1 or newer (#273)
1 parent b4523e3 commit 9969123

7 files changed

Lines changed: 12 additions & 6 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.jvnet.hudson.plugins</groupId>
77
<artifactId>analysis-pom</artifactId>
8-
<version>8.7.0</version>
8+
<version>10.5.0</version>
99
<relativePath />
1010
</parent>
1111

src/main/java/io/jenkins/plugins/checks/api/TruncatedString.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
/**
1919
* Utility wrapper that silently truncates output with a message at a certain size.
20+
*
2021
* <p>
2122
* The GitHub Checks API has a size limit on text fields. Because it also accepts markdown, it is not trivial to
2223
* truncate to the required length as this could lead to unterminated syntax. The use of this class allows for adding

src/main/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ private void runAsync(final Runnable run) {
158158
public static class JobCheckoutListener extends SCMListener {
159159
/**
160160
* {@inheritDoc}
161+
*
161162
* <p>
162163
* When checkout finished, update the check to "in progress".
163164
* </p>

src/test/java/io/jenkins/plugins/checks/status/BuildStatusChecksPublisherITest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void shouldPublishStatusWithProperties() throws Exception {
121121
* Test checks output includes pipeline details.
122122
*/
123123
@Test
124-
public void shouldPublishStageDetails() {
124+
public void shouldPublishStageDetails() throws Exception {
125125
getProperties().setApplicable(true);
126126
getProperties().setSkipped(false);
127127
getProperties().setSuppressLogs(false);
@@ -236,7 +236,7 @@ public void shouldPublishStageDetails() {
236236
* Test checks output includes pipeline details, but not logs, when requested.
237237
*/
238238
@Test
239-
public void shouldPublishStageDetailsWithoutLogsIfRequested() {
239+
public void shouldPublishStageDetailsWithoutLogsIfRequested() throws Exception {
240240
getProperties().setApplicable(true);
241241
getProperties().setSkipped(false);
242242
getProperties().setName("Test Status");
@@ -301,7 +301,7 @@ public void shouldPublishStageDetailsWithoutLogsIfRequested() {
301301
* Test that log messages are properly truncated when they exceed the maximum size limit.
302302
*/
303303
@Test
304-
public void shouldTruncateLogsWhenExceedingMaxSize() {
304+
public void shouldTruncateLogsWhenExceedingMaxSize() throws Exception {
305305
getProperties().setApplicable(true);
306306
getProperties().setSkipped(false);
307307
getProperties().setName("Test Status");
@@ -356,7 +356,7 @@ public void shouldTruncateLogsWhenExceedingMaxSize() {
356356
* Validates that a simple successful pipeline works.
357357
*/
358358
@Test
359-
public void shouldPublishSimplePipeline() {
359+
public void shouldPublishSimplePipeline() throws Exception {
360360
getProperties().setApplicable(true);
361361
getProperties().setSkipped(false);
362362
getProperties().setName("Test Status");

src/test/java/io/jenkins/plugins/checks/steps/WithChecksStepITest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void withChecksShouldDetectFailure() {
144144
* Test that withChecks correctly reports aborts.
145145
*/
146146
@Test
147-
public void withChecksShouldDetectAbort() {
147+
public void withChecksShouldDetectAbort() throws Exception {
148148
WorkflowJob job = createPipeline();
149149
// Simulate a job cancellation.
150150
job.setDefinition(new CpsFlowDefinition("withChecks('test injection') { throw new org.jenkinsci.plugins.workflow.steps.FlowInterruptedException("

src/test/java/io/jenkins/plugins/checks/util/CapturingChecksPublisher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
/**
1717
* Implementation of {@link ChecksPublisher} for use in testing, that records each captured checks in a simple list.
18+
*
1819
* <p>
1920
* For example:
2021
* </p>
@@ -40,6 +41,7 @@
4041
* }
4142
* }
4243
* </pre>
44+
*
4345
* <p>
4446
* An example of this can be found in {@link io.jenkins.plugins.checks.steps.PublishChecksStepITest}
4547
* </p>

src/test/java/io/jenkins/plugins/checks/util/LoggingChecksPublisher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Implementation of {@link ChecksPublisher} for use in testing, that logs the checks details in user specified format.
15+
*
1516
* <p>
1617
* For example:
1718
* </p>
@@ -39,6 +40,7 @@
3940
* }
4041
* }
4142
* </pre>
43+
*
4244
* <p>
4345
* An example of this can be found in {@link io.jenkins.plugins.checks.status.BuildStatusChecksPublisherITest}
4446
* </p>

0 commit comments

Comments
 (0)