-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
v15.0.1 regression: NglParseError when trying to lint a groovy shared library via pre-commit #428
Comments
I faced the same problem. I have a Jenkinsfile with the statement |
Thanks for the information, it also works for me with v15.0.0 :) |
same issue, rolling back to Jenkinsfile /* groovylint-disable NglParseError */
import groovy.text.*
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils 15.0.2 docker run --rm -it -v $(pwd):/app/code --entrypoint npm-groovy-lint nvuillam/npm-groovy-lint:v15.0.2 --no-insight --noserver --nolintafter /app/code
/app/code/Jenkinsfile
0 error Unknown parsing error: "/app/code/Jenkinsfile: 3: unable to resolve class org.jenkinsci.plugins.pipeline.modeldefinition.Utils\n @ line 3, column 1.\n import org.jenkinsci.plugins.pipeline.modeldefinition.Utils\n ^\n" NglParseError 15.0.1 is the same docker run --rm -it -v $(pwd):/app/code --entrypoint npm-groovy-lint nvuillam/npm-groovy-lint:v15.0.2 --no-insight --noserver --nolintafter /app/code 15.0.0 respects docker run --rm -it -v $(pwd):/app/code --entrypoint npm-groovy-lint nvuillam/npm-groovy-lint:v15.0.0 --no-insight --noserver --nolintafter /app/code
/app/code/Jenkinsfile
2 info Wildcard (star) import NoWildcardImports
3 info The [org.jenkinsci.plugins.pipeline.modeldefinition.Utils] import is never referenced UnusedImport |
Please look into rectifying this. We've got our Jenkinsfiles linting automation broken 😢 |
Fix #6371 npm-groovy-lint > 15.0.0 is impacted by: - nvuillam/npm-groovy-lint#428 - nvuillam/npm-groovy-lint#422
Fix #6371 npm-groovy-lint > 15.0.0 is impacted by: - nvuillam/npm-groovy-lint#428 - nvuillam/npm-groovy-lint#422
Also need Any way to fix this via config or comments? |
Fix #6371 npm-groovy-lint > 15.0.0 is impacted by: - nvuillam/npm-groovy-lint#428 - nvuillam/npm-groovy-lint#422
Fix #6371 npm-groovy-lint > 15.0.0 is impacted by: - nvuillam/npm-groovy-lint#428 - nvuillam/npm-groovy-lint#422
"unable to resolve class ..." at each internal import.
I guess this is due to the fact it awaits for an explicit @Library import in this environment
The text was updated successfully, but these errors were encountered: