Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"@" character making jenkins error cannot parse file

I currently got this error when building with jenkins

ERROR: Unable to parse file: /var/lib/jenkins/workspace/vcl/resources/views/scr2131.blade.php
ERROR: Parse error at line 11 column 23:

<!-- <% unless @max_results %>-->

It just a comment line in those blade file (i'm using laravel). This file is the common file and it kind of hard to have permission to change anything. Is there anything I can do to make Jenkins pass this error?

like image 529
LucVH Avatar asked Nov 06 '22 18:11

LucVH


1 Answers

I can do to make Jenkins pass this error?

Jenkins itself does not parse those files.

One of your Jenkins job build step does.

So the question becomes: How can I make that step not fail when parsing that php file.

It depends what actually is that step: error parsing are often seen during a SonarQube analysis as this one.

like image 139
VonC Avatar answered Nov 11 '22 17:11

VonC