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

JENKINS - Node 1.6.1 not recognized in Jenkins pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • nodejs-plugin
    • None
    • Jenkins version latest in docker and jenkins/jenkins version latest in docker

      Latest Jenkins version on docker and latest jenkins/jenkins version on docker.

      All two images failed showing the following errors:

      1: Build a freestyle software project.

      Started by user 
      Quintiliano Paquini Nery
      Running as SYSTEM
      Building in workspace /var/jenkins_home/workspace/Exercicios_Ebac_Cypress
      The recommended git tool is: NONE
      No credentials specified
      > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/Exercicios_Ebac_Cypress/.git # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url 
      https://github.com/QuintilianoNery/Exercicios_Ebac_Cypress.git
      
      timeout=10
      Fetching upstream changes from 
      https://github.com/QuintilianoNery/Exercicios_Ebac_Cypress.git
      > git --version # timeout=10
      > git --version # 'git version 2.39.2'
      > git fetch --tags --force --progress – 
      https://github.com/QuintilianoNery/Exercicios_Ebac_Cypress.git
      +refs/heads/:refs/remotes/origin/ # timeout=10
      > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
      Checking out Revision 70be853333e0bf7a99688bc85e8992444917987a (refs/remotes/origin/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 70be853333e0bf7a99688bc85e8992444917987a # timeout=10
      Commit message: "CICD Jenkins"
      > git rev-list --no-walk 70be853333e0bf7a99688bc85e8992444917987a # timeout=10
      [Exercicios_Ebac_Cypress] $ /bin/sh -xe /tmp/jenkins6961715798762454654.sh
      + tools {nodejs Node JS}
      /tmp/jenkins6961715798762454654.sh: 2: tools: not found
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE
      

      2:  Pipeline

      Started by user 
      Quintiliano Paquini Nery
      [Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/jenkins_home/workspace/Exercicios_Ebac_Cypress Pipeline[Pipeline]
      Unknown macro: {[Pipeline] stage[Pipeline] { (Clonar repositorio)[Pipeline] gitThe recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/Exercicios_Ebac_Cypress Pipeline/.git
      # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url [https://github.com/QuintilianoNery/Exercicios_Ebac_Cypress.git]
      # timeout=10 Fetching upstream changes from [https://github.com/QuintilianoNery/Exercicios_Ebac_Cypress.git] > git --version
      # timeout=10 > git --version
      # 'git version 2.39.2' > git fetch --tags --force --progress -- [https://github.com/QuintilianoNery/Exercicios_Ebac_Cypress.git]
      +refs/heads/*:refs/remotes/origin/*
      # timeout=10 > git rev-parse refs/remotes/origin/master^\{commit}
      # timeout=10 Checking out Revision c5c59302add6735eaf6b3b0dc64a162db9426c12 (refs/remotes/origin/master) > git config core.sparsecheckout
      # timeout=10 > git checkout -f c5c59302add6735eaf6b3b0dc64a162db9426c12 # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git branch -D master
      # timeout=10 > git checkout -b master c5c59302add6735eaf6b3b0dc64a162db9426c12
      # timeout=10 Commit message}
      [Pipeline] // stage[Pipeline] stage[Pipeline]
      { (Instalar Dependencias)[Pipeline] sh+ npm install /var/jenkins_home/workspace/Exercicios_Ebac_Cypress Pipeline@tmp/durable-0753d77c/script.sh: 1: npm: not found[Pipeline] }
      [Pipeline] // stage[Pipeline] stage[Pipeline]
      { (Executar testes)Stage "Executar testes" skipped due to earlier failure(s)[Pipeline] }
      [Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of Pipeline
      ERROR: script returned exit code 127
      Finished: FAILURE

        1. 1.png
          1.png
          46 kB
        2. 2.png
          2.png
          50 kB
        3. 3.png
          3.png
          97 kB
        4. 4.png
          4.png
          47 kB
        5. 5.png
          5.png
          87 kB
        6. 6.png
          6.png
          44 kB
        7. 7.png
          7.png
          19 kB

            nfalco Nikolas Falco
            quintiliano Paquini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: