java - Deploy war file to jetty using jenkins -


I wrote war file as poster build action in Junkkins via Tomcat

  War / ER files = ** / reference to demo path path = application container = tomcat 7 manager user name = admin administrator password = admin tomcat url = https: // localhost: 8080 /  

How to move a war file to jetty instead of tomatoes by using Jenkins Project is a Maven project in which there is no plugin for JT.

I think it is low:

1. Add pom.xml to the next line plugins

  & lt; Plugin & gt; & Lt; Group & gt; Org.eclipse.jetty & lt; / Group & gt; & Lt; ArtifactId & gt; Ghat-Maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 9.1.1.v20140108 & lt; / Edition & gt; & Lt; Configuration & gt; & Lt; StopPort & gt; 9966 & lt; / StopPort & gt; & Lt; StopKey & gt; StopKey & lt; / StopKey & gt; & Lt; StopWait & gt; 20 & lt; / StopWait & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt;  

2.

MVN Jetty: Stop JT: Run-Forced

If you can not change the Pom.xml then you can create separate pom.xml (on other folders) . And run this task with this pom.xml. Post Steps> Enter top-level maven target> Advanced


Comments