-
Bug
-
Resolution: Won't Fix
-
Blocker
-
None
Jenkins build is failing on windows due to yarn lint:ci on the war module.
Steps to Reproduce
- git fetch and git reset --hard origin/master (73cdc7ddeb27b2ed26a78be2c4d524c191ac0aba at the time of writing)
- cd jenkins
- mvn install -DskipTests
Expected Results
- the build passes
Actual Results
- The build fails
... previous logs truncated ... [INFO] Copying sshd-3.236.ved5e1b_cb_50b_2.hpi to C:\workarea\source\github\jenkinsci\jenkins\war\target\jenkins\WEB-INF\detached-plugins\sshd.hpi [INFO] Copying trilead-api-1.0.4.hpi to C:\workarea\source\github\jenkinsci\jenkins\war\target\jenkins\WEB-INF\detached-plugins\trilead-api.hpi [INFO] Copying javax-activation-api-1.2.0-2.hpi to C:\workarea\source\github\jenkinsci\jenkins\war\target\jenkins\WEB-INF\detached-plugins\javax-activation-api.hpi [INFO] Copying javax-mail-api-1.6.2-5.hpi to C:\workarea\source\github\jenkinsci\jenkins\war\target\jenkins\WEB-INF\detached-plugins\javax-mail-api.hpi [INFO] Copying instance-identity-3.1.hpi to C:\workarea\source\github\jenkinsci\jenkins\war\target\jenkins\WEB-INF\detached-plugins\instance-identity.hpi [INFO] [INFO] --- maven-dependency-plugin:3.3.0:copy (support-log-formatter) @ jenkins-war --- [INFO] Configured Artifact: io.jenkins.lib:support-log-formatter:1.1:jar [INFO] Copying support-log-formatter-1.1.jar to C:\workarea\source\github\jenkinsci\jenkins\war\target\support-log-formatter.jar [INFO] [INFO] --- frontend-maven-plugin:1.12.1:yarn (yarn lint) @ jenkins-war --- [INFO] Running 'yarn lint:ci' in C:\workarea\source\github\jenkinsci\jenkins\war [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Jenkins main module 2.362-SNAPSHOT: [INFO] [INFO] Jenkins main module ................................ SUCCESS [ 3.244 s] [INFO] Jenkins BOM ........................................ SUCCESS [ 0.210 s] [INFO] Internal SPI for WebSocket ......................... SUCCESS [ 5.355 s] [INFO] Jetty 9 implementation for WebSocket ............... SUCCESS [ 4.799 s] [INFO] Jenkins cli ........................................ SUCCESS [ 11.588 s] [INFO] Jenkins core ....................................... SUCCESS [01:55 min] [INFO] Jenkins war ........................................ FAILURE [ 21.456 s] [INFO] Tests for Jenkins core ............................. SKIPPED [INFO] Jenkins coverage ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:43 min [INFO] Finished at: 2022-08-01T12:42:52+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:yarn (yarn lint) on project jenkins-war: Failed to run task: 'yarn lint:ci' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :jenkins-war
Notes
- running with -X did not reveal any more insights
- the version of node downloaded war\node\node.exe is v16.16.0
JENKINS-68887/ https://github.com/jenkinsci/jenkins/commit/6b17e392cdd8a6f52a488c98f75cb00a4346440c did fix the issue with a build being DOA but something else has regressed
- links to