Skip to content

Commit 8c65965

Browse files
committed
[CI] Don't try to fetch the logs of SKIPPED jobs
SKIPPED jobs have no logs resulting in exceptions.
1 parent ad5b191 commit 8c65965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/quarkus-ecosystem-issue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void run() {
128128
failedJobsList.add(job);
129129
}
130130
}
131-
} else if (job.getName().contains("Q Mandrel IT")) {
131+
} else if (job.getName().contains("Q Mandrel IT") && !job.getConclusion().equals(Conclusion.SKIPPED)) {
132132
String fullContent = getJobsLogs(job, "mandrel-it-issue-number",
133133
"FAILURE [",
134134
"Z Error:",
@@ -336,7 +336,7 @@ private String getJobsLogs(GHWorkflowJob job, String... filters) {
336336
System.out.println(String.format("\nGetting logs for job %s", job.getName()));
337337
fullContent = job.downloadLogs(getLogArchiveInputStreamFunction(filters));
338338
} catch (IOException e) {
339-
System.out.println(String.format("Unable to get logs for job %s", job.getName()));
339+
System.out.println(String.format("Unable to get logs for job %s (%s)", job.getName(), job.getHtmlUrl()));
340340
throw new UncheckedIOException(e);
341341
}
342342
return fullContent;

0 commit comments

Comments
 (0)