报错处理一:
### --- 报错现象:
~~~ 脚本文件未能执行,权限被拒绝,需要给新建的目录授予读写权限
+ cp -f /var/lib/jenkins/workspace/maven-docker/target/easy-springmvc-maven.war /var/lib/jenkins/docker-file/maven-docker-test_war/maven-docker.war
+ sudo docker login -u yanqi -p Harbor12345 10.10.10.11:80
++ grep jenkins/maven-docker
+ cd /var/lib/jenkins/docker-file/maven-docker-test_war
+ sudo docker build -t 10.10.10.11:80/jenkins/maven-docker:20210401-144031 .
Build step 'Execute shell' marked build as failure
### --- 解决方案:
[root@jenkins ~]# cd /var/lib/jenkins
[root@jenkins jenkins]# chmod 777 docker-file/ -R
[root@jenkins jenkins]# ll docker-file/
drwxrwxrwx 2 root root 48 Apr 1 21:11 maven-docker-test_war