Build definition to build a work item
Is it possible in RTC JBE to build just an work item and get a deployment jar with only the change for the work item or a collection of work items?
I am trying to find a way if the build tool can be configurared to build and provide a deployment jar just with the chaanges and then outputs a installed jar with only the changes accepted for the build (in the build workspace).
Then I can use admin console to update the installed war using the " Replace, add, or delete multiple files" option.
Thnaks
One answer
It is possible, but its more of an SCM question. You would either need to query the Work Item via the API and get the change set UUIDs, and then accept just those UUIDs into your build workspace and run the build from that workspace. Or diff the workspace against the baseline and find the UUIDs to accept by regexing out the workitems.
~Spencer
Comments
Can you please elaborate?
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/r_scm_cli_scm.html
Look at the compare example. You can use compare against the baseline and stream to get the changes from the baseline to the stream. You can also get the work items for those changesets as well as the changeset UUIDs. You would run the regex against this data to pull the UUIDs of the associated work items. Then you can run an accept on that UUID into a baseline workspace. Finally a build against that workspace would get you the artifacts you want.
~Spencer