java retry on fail
This commit is contained in:
Родитель
75aa65ea1e
Коммит
ceb9d360dc
|
@ -7,5 +7,5 @@ module.exports = {
|
|||
coverageProvider: "v8",
|
||||
testEnvironment: "jsdom",
|
||||
preset: "ts-jest",
|
||||
testTimeout: 10000
|
||||
testTimeout: 15000
|
||||
};
|
||||
|
|
|
@ -42,7 +42,12 @@ async function runValidatorJRE(artifactPath: string): Promise<CommandResult | nu
|
|||
|
||||
fs.copyFileSync(`./${validatorJarFile}`, tempJarFile);
|
||||
|
||||
const result: CommandResult = await runCommand(`java -jar ./${tempJarFile} ./${artifactPath}`, `Running HL7 FHIR validator with JRE`, log);
|
||||
let result: CommandResult = await runCommand(`java -jar ./${tempJarFile} ./${artifactPath}`, `Running HL7 FHIR validator with JRE`, log);
|
||||
|
||||
if (result.exitCode) {
|
||||
result = await runCommand(`java -jar ./${tempJarFile} ./${artifactPath}`, `Running HL7 FHIR validator with JRE`, log);
|
||||
}
|
||||
|
||||
|
||||
fs.rmSync(tempJarFile);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче