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

Is it possible to create or tag a Release through a command line utility, or API?

 I'm trying to find a way to create or tag a Release through a command line utility, or API. I've checked the lscm utility, but it looks like it only handles SCM operations. Going though the REST API, I didn't find any resource capable of doing this. I also checked the Java API doc, but couldn't find anything there either.
The goal is to automate the deploy process, which already integrates Jenkins and RTC. However, there is one manual step in the process, which is the creating or tagging a release using the Web UI or Eclipse.

Any thoughts?

Thanks!

0 votes


Accepted answer

Permanent link
 It's possible with the Java API, I've done it. Unfortunately I can't share the code right now but here are the basic steps:

  1. Get the build result that represents the build that you want to make a release
  2. Determine the project area that build result belongs to
  3. Use the work item client to create a deliverable against the project area from step #2
  4. Set the build result (step #1) as the deliverable's artifact
  5. Save deliverable
  6. Get working copy of build result, mark as delete not allowed
  7. Save build result
Andre Gusmao selected this answer as the correct answer

2 votes

Comments

Thanks Jeff!! 

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
× 10,937
× 234
× 19

Question asked: Jan 15 '15, 12:29 p.m.

Question was seen: 4,044 times

Last updated: Jan 16 '15, 11:44 a.m.

Confirmation Cancel Confirm