Skip to content

Commit

Permalink
Use API that does not throw exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Apr 15, 2024
1 parent 8156c3e commit 4efc2dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@
class StepsITest extends IntegrationTestWithJenkinsPerSuite {
private static final String NO_QUALITY_GATE = "";

@Test
void shouldNotFailWhenJobHasNoWorkspace() {
var job = createPipelineWithWorkspaceFilesWithSuffix("eclipse.txt");
job.setDefinition(new CpsFlowDefinition("def r; node {r = scanForIssues tool: eclipse(pattern: '*issues.txt')}; publishIssues issues: [r]", true));

var build = buildSuccessfully(job);
assertThat(build.getAction(ResultAction.class).getResult().getIssues()).hasSize(8);
}

@Test
void shouldParseCheckstyleUsingTheParserRegistry() {
WorkflowJob job = createPipelineWithWorkspaceFilesWithSuffix("checkstyle1.xml", "checkstyle2.xml");
Expand Down

0 comments on commit 4efc2dc

Please sign in to comment.