普清
|
jenkins配置:
docker rm -f spring-docker
Dockerfile配置:
FROM 192.168.109.128:5000/registry-test
构建时报如下错误,并且war包也没有移动到指定的目录下
[INFO] ------------------------------------------------------------------------ SSH: Connecting from host [localhost.localdomain] SSH: Connecting with configuration [192.168.109.128] ... SSH: EXEC: STDOUT/STDERR from command [ docker rm -f spring-docker sleep 1 cd /myDockerfile/spring-docker-file docker build -t qingpu/website:v1 /tmp/docker_builder sleep 1 docker run -d -p 9090:9090 --name spring-docker qingpu/website:v1] ... spring-docker Cannot locate Dockerfile: Dockerfile c89a49819d48cd7aeffff0daaad2e7c6d0c63958b83c4a6f1bcfff074bab8f71 Error response from daemon: Cannot start container c89a49819d48cd7aeffff0daaad2e7c6d0c63958b83c4a6f1bcfff074bab8f71: [8] System error: exec: "java": executable file not found in $PATH SSH: EXEC: completed after 4,818 ms SSH: Disconnecting configuration [192.168.109.128] ... ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [1]] Build step 'Send build artifacts over SSH' changed build result to UNSTABLE Finished: UNSTABLE 请教各位大神了,谢谢。 |
2018-02-28 16:06:44
普清 最后编辑, 2018-02-28 16:28:18