Skip to content

Commit

Permalink
test(DeployJob): Create e2e otp-runner manifest fikle before writing …
Browse files Browse the repository at this point in the history
…to it.
  • Loading branch information
binh-dam-ibigroup committed Oct 4, 2021
1 parent 0950b24 commit 0581dfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ else if ("true".equals(System.getenv("RUN_E2E"))) {
status.fail("Failed to create directories for otp-runner E2E manifest.");
return;
}
otpManifestFile.createNewFile();
try (
FileWriter fw = new FileWriter(otpManifestFile)
) {
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
otpManifestFile.createNewFile();
fw.write(mapper.writeValueAsString(manifest));
} catch (JsonProcessingException e) {
status.fail("Failed to create E2E manifest for otp-runner!", e);
Expand Down

0 comments on commit 0581dfb

Please sign in to comment.