Jenkins deploy plugin deletes app context xml file

2019-07-15 01:21发布

问题:

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.