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

yarn lint checks .git directory contents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 2.367

      yarn lint breaks the the mvn build of jenkinsci/jenkins if branches with unexpected names exist.

      [INFO] --- frontend-maven-plugin:1.12.1:yarn (yarn lint) @ jenkins-war ---
      [INFO] Running 'yarn lint:ci' in /Users/danielbeck/Repositories/github.com/daniel-beck/jenkins/war
      [INFO] Checking formatting...
      [INFO] [error] ../.git/logs/refs/heads/lol.js: SyntaxError: Identifier directly after number. (1:48)
      [INFO] [error] > 1 | 0000000000000000000000000000000000000000 567e03b3134eb471ef2d4e2b3d22c254c1f95e2f Daniel Beck <daniel-beck@users.noreply.github.com> 1662031536 +0200      branch: Created from HEAD
      [INFO] [error]     |                                                ^
      [INFO] [error]   2 | 567e03b3134eb471ef2d4e2b3d22c254c1f95e2f 6b6055f7362cf6fde0eef5a2b909f7f01c535f3c Daniel Beck <daniel-beck@users.noreply.github.com> 1662031708 +0200      commit: WIP Script Listener
      [INFO] [error]   3 |
      [INFO] [error] ../.git/refs/heads/lol.js: SyntaxError: Identifier directly after number. (1:2)
      [INFO] [error] > 1 | 6b6055f7362cf6fde0eef5a2b909f7f01c535f3c
      [INFO] [error]     |  ^
      [INFO] [error]   2 |
      [INFO] All matched files use Prettier code style!
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for Jenkins main module 2.367-SNAPSHOT:
      [INFO] 
      [INFO] Jenkins main module ................................ SUCCESS [  1.522 s]
      [INFO] Jenkins BOM ........................................ SUCCESS [  0.085 s]
      [INFO] Internal SPI for WebSocket ......................... SUCCESS [  0.823 s]
      [INFO] Jetty 9 implementation for WebSocket ............... SUCCESS [  0.614 s]
      [INFO] Jetty 10 implementation for WebSocket .............. SUCCESS [  0.636 s]
      [INFO] Jenkins cli ........................................ SUCCESS [  2.532 s]
      [INFO] Jenkins core ....................................... SUCCESS [ 39.641 s]
      [INFO] Jenkins war ........................................ FAILURE [ 24.518 s]
      [INFO] Tests for Jenkins core ............................. SKIPPED
      [INFO] Jenkins coverage ................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  01:12 min
      [INFO] Finished at: 2022-09-01T13:36:15+02: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]
       

      The build passes on 6b0dc184bf and fails on 04b46d1c68513e4a105b5acdfb7534c89da94eea.

            timja Tim Jacomb
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: