Jenkins - env: ‘node’: No such file or directory

后端 未结 5 1123
不知归路
不知归路 2021-01-05 02:36

I have a jenkins server that is configured using https://github.com/shierro/jenkins-docker-examples/tree/master/05-aws-ecs

I am running a blue ocean pipeline using a

5条回答
  •  失恋的感觉
    2021-01-05 03:07

    I have faced the same issue with jenkinsci/blueocean. No jenkins nodejs plugin needed.

    pipeline { 
      agent any 
    
      stages {
        stage ('Checkout Code') {
          steps {
            checkout scm
          }
        }
        stage ('Install dependencies') {
          steps {
            sh "apk add nodejs"
            sh "echo $PATH"
            sh "npm install"
          }
        }
      }
    }
    

提交回复
热议问题