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

NVM Wrapper Plugin fails builds if NVM fails to update

    XMLWordPrintable

Details

    Description

      The NVM Wrapper Plugin will fail builds if it fails to update NVM. This seems to occur intermittently when concurrent builds are running. Cases we have observed this are: 

      • When creating a pull request we will often run the branch job and the merge job concurrently).
      • When running parallel pipeline steps which both require NVM.

      I suspect the root cause is that the plugin is trying to perform concurrent Git operations on the same repo, but there is insufficient information logged to confirm this.

      From our perspective, possible solutions are:

      • Use the existing NVM install if NVM fails to update
      • Use a retry mechanism to try and avoid conflicts

      Log excerpt:

      => nvm is already installed in /var/lib/jenkins/.nvm, trying to update using git
      => Failed to update nvm, run 'git fetch' in /var/lib/jenkins/.nvm yourself.
      

      Attachments

        Activity

          marc0s Marcos M added a comment -

          Does it fails with something like this?

          => nvm is already installed in /var/lib/jenkins/.nvm, trying to update using git
          
          => Failed to update nvm, run 'git fetch' in /var/lib/jenkins/.nvm yourself.
          

          We are seeing this too quite randomly, actually. But your observations look plausible in our environment, where more than one project is using nvm-wrapper-plugin and have quite high activity.

          marc0s Marcos M added a comment - Does it fails with something like this? => nvm is already installed in / var /lib/jenkins/.nvm, trying to update using git => Failed to update nvm, run 'git fetch' in / var /lib/jenkins/.nvm yourself. We are seeing this too quite randomly, actually. But your observations look plausible in our environment, where more than one project is using nvm-wrapper-plugin and have quite high activity.
          alexscown Alex Scown added a comment -

          Yes, that's exactly it. Updated the ticket as it makes sense for it to be in the description.

          alexscown Alex Scown added a comment - Yes, that's exactly it. Updated the ticket as it makes sense for it to be in the description.
          atoms Tomas Salazar added a comment -

          Please try 0.1.6

          atoms Tomas Salazar added a comment - Please try 0.1.6

          People

            atoms Tomas Salazar
            alexscown Alex Scown
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: