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

maven build failing with 2.289 LTS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      We are facing the below maven build error on jenkins pipeline after jenkins version upgrade to 2.289 LTS.

      [INFO] 
      [ERROR] npm ERR! code ELIFECYCLE
      [ERROR] npm ERR! errno 1
      [ERROR] npm ERR! xxxx@0.1.0 build: `node scripts/build.js`
      [ERROR] npm ERR! Exit status 1
      [ERROR] npm ERR! 
      [ERROR] npm ERR! Failed at the xxxx@0.1.0 build script.
      [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      [ERROR] 
      [ERROR] npm ERR! A complete log of this run can be found in:
      [ERROR] npm ERR!     /home/jenkins/.npm/_logs/2021-09-09T11_29_57_595Z-debug.log
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] com.example.gqe x.x.x ................... SUCCESS [ 17.925 s]
      [INFO] com.example.gqe.parent x.x.x ............ SUCCESS [  0.025 s]
      [INFO] Gqe Sparql Endpoint x.x.x .......................... FAILURE [01:50 min]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  02:14 min
      [INFO] Finished at: 2021-09-09T11:29:57Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (webpack build) on project com.example.gqe.web: Failed to run task: 'npm run build' failed. (error code 1) -> [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 :com.example.gqe.web
      
      • The same project is building correctly on local env as well as on jenkins k8s node.
      • I have tested it on 2.277 LTS version and it is working fine there.
      • On, Jenkins 2.289 LTS if I run mvn command using sudo it is building the maven project successfully. Also, if I run

            Unassigned Unassigned
            s_bharshankar swapnil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: