Details

    • Similar Issues:

      Description

      I have a fresh installation of Jenkins 2.46.1 with Docker and I'm having issues to have NodeJS running and I can't find any answer that puts me in the correct path to fix this.

       

      How I did my setup:

       

      • Install jenkins
        • docker create -v /var/jenkins_home --name jenkins-dv jenkinsci/blueocean:latest
        • docker run -d -p 8080:8080 --volumes-from jenkins-dv --name company-jenkins jenkinsci/blueocean:latest
      • Installed NodeJS Plugin 1.2.1
      • Configured NodeJS tool with the following:
        • name: node6
        • version: nodejs 6.10.3
        • global npm packages: yarn
      • Created the attached Jenkinsfile in my repository
      • Create a Multibranch Pipeline

       

      When I run a build in a branch I get the following output: https://pastebin.com/BUTJLnVp

       

      As you can see it fails immediately in the (Declarative: Tool Install) stage while trying to install yarn globally with "env: ‘node’: No such file or directory" and in the following stages I get: "script.sh: line 1: node: not found"

       

      I feel like this is such a common scenario that should be super easy to setup, and I'm having a really hard time to setup this simple part.

      Where I might have gone wrong? Or is this a known issue?

        Attachments

          Issue Links

            Activity

            canastro Ricardo Canastro created issue -
            nfalco Nikolas Falco made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-43593 [ JENKINS-43593 ]
            nfalco Nikolas Falco made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Duplicate [ 3 ]
            nfalco Nikolas Falco made changes -
            Component/s docker [ 20834 ]

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                canastro Ricardo Canastro
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: