Reputation: 41
I am trying to integrate https://plugins.jenkins.io/lighthouse-report/ plugin. I have installed the plugin in jenkins but when i run this command:
node {
sh 'npx lighthouse-ci http://localhost:8080/ --jsonReport --report=.'
lighthouseReport file: './report.json', name: 'My Report'
}
I get the ERROR:
npx: installed 246 in 8.925s
Unexpected token =
I was expecting it to generate a lighthouse report, instead i am getting this error.
Unexpected token =
Can someone please help me with this.
Upvotes: 0
Views: 115