请问老师做静态集成报错

来源:5-5 Freestyle job实战 - Freestyle任务构建和自动化部署

qq_慕慕8439209

2018-12-28

请问老师做静态集成时候,jenkins build shell里面的cd $WORKSPACE/nginx_playbook请问这个WORKSPACE是哪来的?按视频操作报错了
/tmp/jenkins5447534446360083653.sh: line 7: cd: /var/lib/jenkins/workspace/nginx-freestyle-job/nginx_playbook: No such file or directory
ansible 2.5.14 (stable-2.5 6548b7a558) last updated 2018/12/26 18:03:26 (GMT +800)
config file = None
configured module search path = [’/home/deploy/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /home/deploy/.py3-a2.5-env/ansible/lib/ansible
executable location = /home/deploy/.py3-a2.5-env/ansible/bin/ansible
python version = 3.6.5 (default, Dec 26 2018, 17:45:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
ansible-playbook 2.5.14 (stable-2.5 6548b7a558) last updated 2018/12/26 18:03:26 (GMT +800)
config file = None
configured module search path = [’/home/deploy/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /home/deploy/.py3-a2.5-env/ansible/lib/ansible
executable location = /home/deploy/.py3-a2.5-env/ansible/bin/ansible-playbook
python version = 3.6.5 (default, Dec 26 2018, 17:45:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
ERROR! the playbook: ./deploy.yml could not be found

写回答

1回答

一路向北

2018-12-28

感谢这位同学的关注,从报错上看,应该是没有找到workspace该job下的nginx-playbook目录,建议先去查看具体报错目录是否存在,最后再查看job配置

0
0

Jenkins+Ansible+Gitlab-三剑合璧掌握自动化部署

整合三大工具解决自动化部署&持续交付问题

1290 学习 · 319 问题

查看课程