It's all about the answers!

Ask a question

Post Check In or Deliver changes to source code file


Bryan Pinto (111) | asked Feb 20 '17, 10:59 p.m.

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



permanent link
Ralph Schoon (63.1k33646) | 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?


Ralph Schoon commented Feb 21 '17, 2:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 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.


permanent link
Donald Nong (14.5k414) | answered Feb 21 '17, 12:45 a.m.

POM is a Maven thing, and I doubt that you can do any automation during check-in or deliver in RTC.

Your answer


Register or to post 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.