How to create Snapshot on stream using plain java api
Hello,
Usecase :
I want to create snapshot on stream after every successful build, so is there plain java api available using which i can create snapshot on stream ? if possible could also share some supporting docs/code snippet for the same
What i have already tried is using CLI option as an alternative
lscm create snapshot "Stream Name" -u **** -P ******* -r https://local host/ccm -n SN_SnapshotName
Good News is by above option i can create snapshot successfully
Thanks & Best Regards
One answer
You can use this search to find a host of answers, including using the Plain Java Client Libraries (and the source code):
You can download the Plain Java Client Libraries from the jazz.net download page for EWM. You can also download the JavaDoc for that API on the same page. If you really want to be able to develop any EWM Java API or SDK, you should read through https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and follow https://jazz.net/library/article/1000 at least the first lab to set up an environment where you can see the SDK source, examples and unit tests to search and be able to properly debug.
Comments
I should mention that I think it is overkill to develop a plain Java Client Libraries application to create a snapshot during a build. If the build environment does not provide this as an option, like for example in the Jazz Build Engine, using the SCM command line (your LSCM call) would be a cheaper and supported way.