Tag: jenkins jenkins pipeline

Jenkins里面的Docker代理 – npm“找不到模块”

我正在从事以下构build步骤的自动化: – 使用webpack构build前端应用程序 – 在其上运行testing 我正在使用启用蓝海插件的Jenkins,这里是Jenkinsfile : Jenkinsfile:pipeline { agent { dockerfile { filename 'Dockerfile' } } stages { stage('Build') { steps { sh 'npm run build' } } } } 我正在使用下面的Dockerfile FROM node:latest WORKDIR /app COPY . /app RUN npm install webpack -g && npm install 问题是,当运行npm run build它不能findwebpack: > webpack –config webpack-production.config.js –progress […]