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

How to checkin and deliver changes after build using ant target

Hi,

         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="${java.io.tmpdir}/toolkittest" />
<teamFetch repositoryAddress="${repositoryAddress}"
		           userId="${userId}"
		           password="${password}"
		           workspaceName="workspace1"
		           buildResultUUID="${buildResultUUID}"
		           destination="${java.io.tmpdir}/toolkittest"
		           verbose="true" />
Thanks in advance,

Regards,
Prashanthi.

0 votes

Comments

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

1 vote


Accepted answer

Permanent link
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.

http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m5/topic/com.ibm.team.scm.doc/topics/checkin.html
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m5/topic/com.ibm.team.scm.doc/topics/deliver.html

Other release documentation links can be found here,

http://www-01.ibm.com/support/docview.wss?rs=3488&uid=swg27012781

Scott
Prashantha Kumari selected this answer as the correct answer

2 votes


One other answer

Permanent link
Thanks Scott and Sam. I will try with SCM command only.

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
× 1,202
× 562
× 158
× 113
× 87
× 63

Question asked: Dec 12 '13, 7:01 a.m.

Question was seen: 7,034 times

Last updated: Dec 16 '13, 2:54 a.m.

Confirmation Cancel Confirm