It's all about the answers!

Ask a question

RTC Commit Hook


Steven Myron (1311) | asked May 08 '15, 3:46 p.m.
retagged May 08 '15, 7:41 p.m. by Surya Tripathi (65017)

I don't know much regarding RTC proper but we have an initiative in out DevOps group to provide CI processes/builds from SCM systems including RTC.

Our build/deploy tool is from IBM called uBuild/uDeploy/uRelease that we intend on kicking off pre-defined builds of various applications and components.  I am in a .NET development group so I'm a little like a fish out of water when looking at your integration scenarios as they tend to be more Java/Ruby based so they seem a little foreign to me.

We need a trigger of sorts or some process kicked off when RTC's SCM commits changesets to the repository.  Hopefully, this would include metadata regarding which component/application is being checked in.

So, in question form, how do we get notified of check ins by developers into RTC? 

Accepted answer


permanent link
Surya Tripathi (65017) | answered May 08 '15, 7:39 p.m.
 In order to get pre and post notifications for check-ins, you would have to create operations advisors and install them on  the server. 
This article describes what an operation advisor is and how to create one -
https://jazz.net/library/article/495

You would need to setup your dev environment to develop the advisor.
This article describes how you can set your dev environment -
https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/

There is also a workshop if you are interested (it may be for client side only though)
https://jazz.net/library/article/1000

Steven Myron selected this answer as the correct answer

2 other answers



permanent link
sam detweiler (12.5k6195201) | answered May 10 '15, 7:06 a.m.
edited May 11 '15, 12:24 p.m.
there are two commit/deliver hooks available outside the product

see the last two posts here
https://jazz.net/forum/questions/132739/jenkins-polling-is-too-slow-can-rtc-notify-jenkins-immediately

Jorge has one that triggers build defs
I have one that triggers a script from which you can do almost anything.

mine is more like svn/post_commit or git/post_receive hooks and must be configured for every project, just like the svn/git repo hooks

the hook is passed the following info:

repo_url
project name
stream name
component name
changeset UUID
action string = either 'Baseline' or 'Changset'

these are both 'deliver' to stream hooks.  RTC does not provide an event point on client checkin to workspace.

permanent link
Geoffrey Clemm (30.1k33035) | answered May 10 '15, 12:17 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
My understanding is that pre/post conditions are not available on the check-in operation (Surya: Has this changed?)

Comments
Surya Tripathi commented May 11 '15, 11:46 a.m.

 No, it hasn't changed. Somehow I had a feeling that Steven Myron is interested in 'deliver' hooks.

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.