My question is related to Jenkins and linting errors.
When I run npm run build
locally on my machine, I am successfully able to build my code base, without any errors.
However, when I run npm run build
on Jenkins, the job FAILS due to linting errors, usually related to case sensitive issues, and varialbes of type any.
Here is an example:
ERROR in {jenkins-path-to-tsx-file} [tsl] ERROR in {jenkins-path-to-tsx-file}(3,35) TS2307: Cannot find module './ResetPasswordForm'.
And
ERROR in {jenkins-path-to-tsx-file} [tsl] ERROR in {jenkins-path-to-tsx-file}(38,29) TS7006: Parameter 'res' implicitly has an 'any' type.
I understand how to fix these errors in my application code to remove these errors.
My question is, am I able to stop the build failing due to these errors, and display them as warnings, or continue building the Jenkins job despite the errors above?
0 comments:
Post a Comment