Post Check In or Deliver changes to source code file
I am new to RTC and I want to update the package section in my pom file (from jar to pom) when I commit the code (either at CheckIn or Deliver) in the Stream.
What RTC components can I use to make this change?
|
2 answers
POM is a Maven thing, and I doubt that you can do any automation during check-in or deliver in RTC.
|
Ralph Schoon (63.5k●3●36●46)
| answered Feb 21 '17, 2:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Check in is not yet available (some work done for 6.0.4) as an operation ID and in general https://rsjazz.wordpress.com/2012/12/14/do-not-modify-the-triggering-element-in-an-operationadvisor/ means, that you can not modify the SCM data in the deliver operation. You can only prevent a deliver (or check once available).
I confirmed that with the SCM development team.
You can modify files only after the deliver has been done.
Comments
Bryan Pinto
commented Feb 21 '17, 2:51 a.m.
So so if I want to prevent a deliver if the packaging type of pom is something other than pom and notify it with a message, then how can it be done via RTC?
See https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ as an example. There is a link for more information in that post. There are more API examples in that blog you can search for. |
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.