From 65f3b1f7e90be4487418385b52e70dc48e92a758 Mon Sep 17 00:00:00 2001 From: "Francois G." Date: Tue, 26 Nov 2024 13:23:17 +0100 Subject: [PATCH] Updated version of jahia --- src/commands/zencrepes.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/zencrepes.ts b/src/commands/zencrepes.ts index a9c3aa9..801689d 100644 --- a/src/commands/zencrepes.ts +++ b/src/commands/zencrepes.ts @@ -90,13 +90,13 @@ class JahiaTestrailReporter extends Command { let dependencies = JSON.parse(flags.dependencies) let name = '' let version = flags.version - let jahiaFullVersion = '' + let jahiaVersion = '' let moduleVersion = '' if (flags.moduleFilepath !== undefined) { const versionFile: any = fs.readFileSync(flags.moduleFilepath) const versions: UtilsVersions = JSON.parse(versionFile) - if (versions.jahia.fullVersion !== '') { - jahiaFullVersion = versions.jahia.fullVersion + if (versions.jahia.version !== '') { + jahiaVersion = `Jahia ${versions.jahia.version}` } if (versions.module.id !== '' && versions.module.version !== '') { moduleVersion = `${versions.module.id}-${versions.module.version}` @@ -126,7 +126,7 @@ class JahiaTestrailReporter extends Command { suite: suite.name, duration: test.time, state: test.status, - jahia: jahiaFullVersion, + jahia: jahiaVersion, module: moduleVersion, caseTotal: 1, // Hack to fit in Zencrepes ZUI existing data model caseSuccess: test.status === 'PASS' ? 1 : 0,