Skip to content

Commit

Permalink
Updated version of jahia
Browse files Browse the repository at this point in the history
  • Loading branch information
Fgerthoffert committed Nov 26, 2024
1 parent 58a1622 commit 65f3b1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/zencrepes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 65f3b1f

Please sign in to comment.