通过nginx部署Tomcat URL API作为jenkins管道上的反向代理

时间:2019-03-13 10:35:53

标签: tomcat nginx curl jenkins-pipeline

问题:

在jenkins管道上上传带有curl到nginx的应用程序作为反向代理时,我得到了一个奇怪的行为,即我没有得到任何一致的返回值。

但是,如果我稍后在管道上睡觉,反馈将是相同的,但是上传将成功(无提示)。

当我在jenkins服务器的bash上发出请求时,请求按预期方式工作(返回花了他的时间才能到达,但他到达了)。

卷曲请求:

curl --fail -v -u $USERPASS -T target/*.war https://<reverse-proxy>/resources/manager/text/deploy?path=&update=true

卷曲结果的尾巴:

> PUT /resources/manager/text/deploy?path= HTTP/1.1
> Host: <reverse-proxy>
> Authorization: Basic <token>
> User-Agent: curl/7.58.0
> Accept: */*
> Expect: 100-continue
> Content-Length: 44659139
> 
{ [5 bytes data]
< HTTP/1.1 100 Continue
} [5 bytes data]

0 个答案:

没有答案