Jenkins curl:(52)来自服务器的空回复
我在做几个阶段的声明式pipe道。 而在其中一个阶段,我想在tomcat映像上运行docker上部署war文件。 对于这个我使用命令curl。 但我总是在jenkins上得到以下错误:
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 15.7M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (52) Empty reply from server
这是我的代码:
pipeline { agent any .... stage ('System test') { steps{ bat 'docker run -d -p 9205:8080 tomcat:7.0.82' dir('some/dir/something'){ script{ bat 'curl -T "C:/path/to/solution.war" "http://tomcat:tomcat@localhost:9205/manager/text/deploy?path=/solution.war&update=true"' } input 'Do you want to proceed?' } } }
我已经尝试过的事情:
-
curl-L
-
netstat -a -p TCP -n | grep 3000(使用的端口)..查看是否没有更多的连接
-
curl与证书