使用docker安装Jenkins配置jdk等报错is not a directory on the Jenkins master(but perhaps it exists on some agents。其实不止jdk还要maven

是因为本地的maven和java没有挂载到Jenkins容器:

解决方案(docker-compose.yml):

/usr/java/jdk1.8.0_181(本地 换成自己的):/usr/java/jdk1.8.0_181(docker)

/usr/local/maven:/usr/local/maven \

Logo

更多推荐