Skip to content

Commit

Permalink
Adjust exception
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Apr 4, 2024
1 parent 469908a commit 4759282
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private String getName() throws IOException, InterruptedException {
if (step.isIncludeStage()) {
FlowNode flowNode = getContext().get(FlowNode.class);
if (flowNode == null) {

Check warning on line 144 in src/main/java/io/jenkins/plugins/checks/steps/WithChecksStep.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 144 is only partially covered, one branch is missing
throw new IllegalArgumentException("No FlowNode found in the context.");
throw new IllegalStateException("No FlowNode found in the context.");

Check warning on line 145 in src/main/java/io/jenkins/plugins/checks/steps/WithChecksStep.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 145 is not covered by tests
}

List<FlowNode> enclosingStagesAndParallels = FlowNodeUtils.getEnclosingStagesAndParallels(flowNode);
Expand Down

0 comments on commit 4759282

Please sign in to comment.