Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link

 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. 

0 votes

Comments

 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

 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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,030

Question asked: Jun 07 '18, 10:21 a.m.

Question was seen: 2,271 times

Last updated: Jun 08 '18, 4:42 p.m.

Confirmation Cancel Confirm