Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes



2 answers

Permanent link

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

0 votes


Permanent link

 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.

0 votes

Comments

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

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,031

Question asked: Feb 20 '17, 10:59 p.m.

Question was seen: 2,166 times

Last updated: Feb 21 '17, 2:56 a.m.

Confirmation Cancel Confirm