Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing with --quality-gate-status on sonarcloud.io #163

Closed
pragnesh-is opened this issue Nov 23, 2022 · 1 comment
Closed

Failing with --quality-gate-status on sonarcloud.io #163

pragnesh-is opened this issue Nov 23, 2022 · 1 comment

Comments

@pragnesh-is
Copy link

No proxy configuration detected
sonarqube version: 8.0.0
"/usr/local/lib/node_modules/sonar-report/summary.txt.ejs":45
; __append(escapeFn( qualityGateStatus.projectStatus.period.date ))
^

TypeError: /usr/local/lib/node_modules/sonar-report/summary.txt.ejs:14
12| <%_ } %>
13| <%
if (qualityGateStatus) { _%>

14| Quality gate status: <%= qualityGateStatus.projectStatus.status %> on <%= qualityGateStatus.projectStatus.period.date %> (<%= qualityGateStatus.projectStatus.period.parameter %>)<
15|
16| <%_ for (const condition of qualityGateStatus.projectStatus.conditions) { _%>
17| Metric: <%= condition.metricKey %>

Cannot read properties of undefined (reading 'date')
at eval ("/usr/local/lib/node_modules/sonar-report/summary.txt.ejs":45:65)
at summary.txt (/usr/local/lib/node_modules/sonar-report/node_modules/ejs/lib/ejs.js:703:17)
at /usr/local/lib/node_modules/sonar-report/node_modules/ejs/lib/ejs.js:260:40
at new Promise ()
at tryHandleCache (/usr/local/lib/node_modules/sonar-report/node_modules/ejs/lib/ejs.js:258:14)
at Object.exports.renderFile (/usr/local/lib/node_modules/sonar-report/node_modules/ejs/lib/ejs.js:491:10)
at generateReport (file:///usr/local/lib/node_modules/sonar-report/index.js:464:27)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
path: '/usr/local/lib/node_modules/sonar-report/summary.txt.ejs'
}

@thecampagnards
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants