It's all about the answers!

Ask a question

How to checkin and deliver changes after build using ant target

Prashantha Kumari (3511) | asked Dec 12 '13, 7:01 a.m.
retagged Dec 13 '13, 11:07 a.m. by David Lafreniere (4.8k7)

         I am looking for ant target for checkin and deliver the code back to RTC repository. We are running build through command line using ant script. Once build completes, it will generate one .zip file. we need to checking that .zip file back to RTC repository.  Using Team fetch i am fetching the code from workspace and building the code. Please let me know how to checkin and deliver the code using ant target. If anyone knows about ant target for RTC checkin and deliver , please share the code .

<mkdir dir="${}/toolkittest" />
<teamFetch repositoryAddress="${repositoryAddress}"
		           verbose="true" />
Thanks in advance,


sam detweiler commented Dec 12 '13, 7:51 a.m.

I don't think there is an ant task for deliver. I think you have to use the SCM commandline, 

but..secondarily, binary files in the source repository is really bad practice. 
binary files should be in a dependency mgmt system, nexus, artifactory, ... 

the task reference is here

Accepted answer

permanent link
Scott Cowan (966310) | answered Dec 12 '13, 10:09 a.m.
As Sam suggested, you'll need the SCM CLI to checkin and deliver changes during a build.  Here are some links to the 4.0.5 checkin and deliver commands.

Other release documentation links can be found here,

Prashantha Kumari selected this answer as the correct answer

One other answer

permanent link
Prashantha Kumari (3511) | answered Dec 16 '13, 2:54 a.m.
Thanks Scott and Sam. I will try with SCM command only.

Your answer

Register or 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.