-
Bug
-
Resolution: Unresolved
-
Minor
I had an old work/ directory at work-2.346/ which contained extracted war resources.
This broke the core build (of a state between 2.393 and 2.394) locally, Maven output excerpt:
../work-2.346/war/WEB-INF/classes/META-INF/licenses.html 25ms [INFO] [INFO] Deprecation warnings: [INFO] - The "declaration-colon-newline-after" rule is deprecated. [INFO] - The "linebreaks" rule is deprecated. [INFO] - The "max-line-length" rule is deprecated. [INFO] - The "selector-list-comma-newline-after" rule is deprecated. [INFO] - The "selector-list-comma-space-after" rule is deprecated. [INFO] - The "string-quotes" rule is deprecated. [INFO] - The "value-list-comma-newline-after" rule is deprecated. [INFO] - The "indentation" rule is deprecated. [INFO] [INFO] [INFO] /Users/danielbeck/Repositories/github.com/daniel-beck/jenkins/work-2.346/war/scripts/behavior.js [INFO] 186:5 error Move function declaration to function body root no-inner-declarations [INFO] 187:14 error Unexpected constant condition no-constant-condition …
This is questionable behavior. Top-level directories to be scanned should be explicitly specified, not "whatever's inside the clone", causing problems like this and JENKINS-69498.