Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69195

Can not build Jenkins on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • core
    • 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

       

            teilo James Nord
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: