Auto deploy using RTC
Hello,
Is there any way to auto deploy built package (jar/war etc) to a server without using urban code deploy (or any other tool). Is it possible to trigger custom script when build is successful? Any reference documents available?
Appreciate your help!
Thanks!
Rama
|
2 answers
It is possible, but it requires you to write the scripts to do it. This can be done in ANT or Maven.
Use the ANT task SCP (secure copy), or FTP to copy the compiled artifact to server for deployment. For Tomcat or Liberty, you write this to the autodeploy directory for each server. WAS classic can be setup to use an autodeploy directory as well.
If using WebSphere App Server classic, you can write Jython scripts to deploy the EAR/WAR files with specific values that you specify on the build definition which are passed into the ANT script.
However, you should consider the cost of any custom deployment scenario. This has labor costs which might meet or exceed the licensing costs of Urbancode.
Comments
Rama SCM
commented Jun 08 '18, 3:40 p.m.
Kenny, Thanks for the reply! How does the script get triggered on successful build? Is there any link/documentation you could refer? Appreciate your help! |
It should be part of the ANT script that you write. Please refer to the Apache ANT website for writing ANT scripts. There is good documentation in the RTC knowledge center on using ANT based build definitions with the Jazz Build Engine. There are also some ANT examples in the build toolkit (which is is part of the build engine download. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.