远程主持人Jenkins更改了权限

时间:2018-05-17 12:55:51

标签: azure jenkins jenkins-pipeline docker-build

我在Azure上使用Jenkins,当我构建项目Jenkins获取存储库时,它构建了图像:

WEB_IMAGE_NAME="${ACR_LOGINSERVER}/front-end-image:kube${BUILD_NUMBER}"
${WORKSPACE} = "/var/lib/jenkins/workspace/reply-frontend"
docker build -t $WEB_IMAGE_NAME ${WORKSPACE}
来自docker文件的

FROM nginx
COPY dist /usr/share/nginx/html
EXPOSE 80

我收到以下错误:

Step 1/3 : FROM nginx
 ---> ae513a47849c
Step 2/3 : COPY dist /usr/share/nginx/html
COPY failed: stat /var/lib/docker/tmp/docker-builder738543803/dist: no such file or directory
Build step 'Execute shell' marked build as failure
Finished: FAILURE

我尝试更改远程Jenkins的权限。

azureuser@jenkinsvm:~$  ls -ls /var/lib/jenkins/
4 drwxrwxrwx  6 jenkins   jenkins    4096 May 16 12:49 workspace

但Jenkins是拥有权限的人,我想将权限分配给我的 azureuser

我怎么能这样做?

0 个答案:

没有答案