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

Getting error while executing npm install shell(sh) command in Jenkins Pipeline project

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • durable-task-plugin
    • Jenkins version - 2.361.1
      OS - Mac OS Big Sur 11.6.7
      npm version - 8.15
      node version - 16.17.0
      Java Version - 11.0.16
      Ant version - 1.10.8

      1. Error:
        wrapper script does not seem to be touching the log file in /Users/ec2-user/.jenkins/workspace/iosbuild/ipatestsample@tmp/durable-b780823b

       

       

       

          [JENKINS-69684] Getting error while executing npm install shell(sh) command in Jenkins Pipeline project

          Mark Waite added a comment -

          The Jenkins issue tracker is used to track bugs and enhancement requests. It is not used as a question and answer site. When you post a question as an issue, your question is seen by very few people. That decreases the chance of an answer to your question.

          Please submit questions to the community forum at https://community.jenkins.io or the chat channels or the Jenkins users mailing list. When more people see the question there is a better chance that someone can assist with the question.

          Mark Waite added a comment - The Jenkins issue tracker is used to track bugs and enhancement requests. It is not used as a question and answer site. When you post a question as an issue, your question is seen by very few people. That decreases the chance of an answer to your question. Please submit questions to the community forum at https://community.jenkins.io or the chat channels or the Jenkins users mailing list. When more people see the question there is a better chance that someone can assist with the question.

          Hi, Thank you for your response,

          After sh 'npm install' command, sh 'node build.js ' command not working and getting

          "wrapper script does not seem to be touching the log file in /Users/ec2-user/.jenkins/workspace/iosbuild/ipatestsample@tmp/durable-7d460eb5(JENKINS-48300: if on an extremely laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400)" error.

          jenkins log.txt

          Please find the sample script used in pipeline job.

          1. Used Pipeline script:

                  pipeline {

                  agent any

                   stages {

                    stage('Hello')

                 {

                      steps {

                        dir("ipatestsample")

               

          {                 echo 'Hello World'                                sh 'npm install'                                sh 'node build.js -kvv 9.3.11'                    }

                      }

                  }

              }

          }

          ramesh chalavadi added a comment - Hi, Thank you for your response, After sh 'npm install' command, sh 'node build.js ' command not working and getting " wrapper script does not seem to be touching the log file in /Users/ec2-user/.jenkins/workspace/iosbuild/ipatestsample@tmp/durable-7d460eb5 ( JENKINS-48300 : if on an extremely laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=86400)" error. jenkins log.txt Please find the sample script used in pipeline job. Used Pipeline script:         pipeline {         agent any          stages {           stage('Hello')        {             steps {               dir("ipatestsample")       {                 echo 'Hello World'                                sh 'npm install'                                sh 'node build.js -kvv 9.3.11'                    }             }         }     } }

          Mark Waite added a comment -

          You seem to have decided to ignore my advice that questions are best asked in locations that are focused on question and answer. I don't plan to respond further on this issue because I think that it is in the wrong location and is assuming more people will see this issue than will actually see it.

          Mark Waite added a comment - You seem to have decided to ignore my advice that questions are best asked in locations that are focused on question and answer. I don't plan to respond further on this issue because I think that it is in the wrong location and is assuming more people will see this issue than will actually see it.

            Unassigned Unassigned
            rameshrc ramesh chalavadi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: