小编Dav*_*itt的帖子

使用Docker Agent了解Jenkins管道步骤

我正在尝试使用Jenkins Pipelines设置自动化的构建器/部署器作业。

我已经安装了一个Docker容器来安装NodeJS和Gulp依赖项:

Docker文件

# Node 8.9 running on lean version of alpine Linux
FROM node:8.9-alpine

# Commented out setting production since 
# we need devDependencies to build
# ENV NODE_ENV production

# Set working directory to root of container
WORKDIR /

# Copy package.json and install dependencies first
# These can be cached as a step so long as they haven't changed
COPY ["./package.json", "./package-lock.json*", "/"]
RUN npm install --no-audit --silent
RUN npm install node-sass --silent
RUN npm install …
Run Code Online (Sandbox Code Playgroud)

jenkins jenkins-plugins docker jenkins-pipeline

5
推荐指数
1
解决办法
1636
查看次数