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

NodeJS Plugin runs auto-install while other dependant jobs are running, breaking builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • nodejs-plugin
    • None
    • Ubuntu 14.04

      With multiple jobs configured to use the same NodeJS Installer, say job A and job B, the auto-install option results in job B failing when job A triggers a NodeJS install.

      This is especially an issue when multiple jobs relying on the same NodeJS install are triggered to run at the same time via source control, and all of the jobs try to use a package that has been removed by first the auto-install process.

      This is the error I received during the middle of my job, after already using the referenced module during the running job.

      Error: ENOENT, no such file or directory '/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/selenium/commands/'
          at Object.fs.readdirSync (fs.js:654:18)
          at loadCommandFiles (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/core/api.js:166:27)
          at loadClientCommands (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/core/api.js:158:5)
          at module.exports.load (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/core/api.js:381:5)
          at new Nightwatch (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/index.js:41:18)
          at Object.exports.client (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/index.js:432:10)
          at runModule (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/runner/run.js:142:27)
          at runTestModule (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/runner/run.js:481:7)
          at null._onTimeout (/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/runner/run.js:484:13)
          at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
      
      ENOENT, no such file or directory '/var/lib/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/0.10.25_nightwatch_karma_grunt/lib/node_modules/nightwatch/lib/selenium/commands/'+ true
      

            Unassigned Unassigned
            tcosgrave_pos Travis Cosgrave
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: