It's all about the answers!

Ask a question

Auto deploy using RTC

Rama SCM (4111119) | asked Jun 07 '18, 10:21 a.m.


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!


2 answers

permanent link
Kenny Smith (302412) | answered Jun 07 '18, 1:52 p.m.

 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. 

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!

permanent link
Kenny Smith (302412) | answered Jun 08 '18, 4:42 p.m.

 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

Register or to post your answer.