Jenkins deploy plugin deletes app context xml file

痴心易碎 提交于 2020-01-15 07:08:30

问题


I am using Jenkins (v1.4.87) and have the deploy plugin (v1.10) to create a job that deploys a built war file into tomcat 6.

The deployment is running successfully, the war is being deployed ok.

Here is the plugin configuration part of the job:

(I have not included the real server details for obvious reasons)

The problem is that somewhere along the way, the application context file is renamed to appname.xml.bak and left in that state. Therefore the application fails to start because tomcat cannot find the context file it expects for the application any longer.

To remedy this I have to log into the server where the context file is located and rename the backup back to its original file name appname.xml.

It feels like the deploy plugin may be getting to a point where it should handle this. I would expect it to either make a copy of the context file called appname.xml.bak or rename the backup back to the correct file name.

I cannot find any documentation that lists out the phases that the plugin goes through so I cannot confirm if this behavior is expected or not. I am left with the only option to download the plugin code from Github and figure it out myself.

Have I missed something obvious maybe?

UPDATED:

I have since updated to Jenkins v2.32.3 and I have the same issue with the deploy plugin. Any help would be great thanks.

来源:https://stackoverflow.com/questions/42811056/jenkins-deploy-plugin-deletes-app-context-xml-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!