Trigger a build when some changes are delivered to a stream
One answer
Have you checked the similar questions posted in the past?
https://jazz.net/forum/questions/104237/trigger-a-build-based-on-changes-in-rtc-scm
https://jazz.net/forum/questions/177519/how-to-trigger-build-on-each-incoming-change
Comments
Yes. I checked those answer. I was wondering if something changed in the RTC after those posts, and now it is possible to implement the same with out-of-the box functionality.
No changes as far as I can tell and there is no built in functionality.
The the JBE polls and Jenkins etc do as well. You could request a build in a follow up action on deliver. See https://rsjazz.wordpress.com/2016/07/15/build-on-state-change-work-item-save-participant/ and related documentation.
I personally find it questionable to build every delivered change. This will likely put your system under heavy load or developers wait for the stuff they really want built.
I would prefer a green stream that has post build delivered changes if the build succeeds. Of course an automation like you have in mind could support that as well, if the build id fast enough (and the build cycle fast enough).