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!
Accepted answer
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:
- Get the build result that represents the build that you want to make a release
- Determine the project area that build result belongs to
- Use the work item client to create a deliverable against the project area from step #2
- Set the build result (step #1) as the deliverable's artifact
- Save deliverable
- Get working copy of build result, mark as delete not allowed
- Save build result