Skip to content

Commit

Permalink
Tweaks to reporting failed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst committed Jan 11, 2024
1 parent 9319690 commit 3287e6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ permissions:
id-token: write

concurrency:
group: "github"
cancel-in-progress: true
group: "pages"
cancel-in-progress: false

jobs:
update:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

concurrency:
group: "pages"
cancel-in-progress: true
cancel-in-progress: false

jobs:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-failed-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
id-token: write

concurrency:
group: "report-failed-jobs"
group: "pages"
cancel-in-progress: false

jobs:
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/keycloak/dashboard/ReportFailedJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
public class ReportFailedJob {

public static void main(String[] args) throws IOException {
String j = System.getProperty("job");
String j = System.getProperty("job").trim();

final String jobRef = j.indexOf('/') == -1 ? j + "/*" : j;
final Integer issueNumber = Integer.parseInt(System.getProperty("issue"));
final Integer issueNumber = Integer.parseInt(System.getProperty("issue").trim());

ObjectMapper yamlMapper = new ObjectMapper(new YAMLFactory());
yamlMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
Expand Down

0 comments on commit 3287e6e

Please sign in to comment.