Jump to content

CI triggers V3 vs V4


diegobowen

Recommended Posts

Oh, that's easy!

look, you only have to setup a "before-checkin" trigger in your server, for example:

cm maketrigger before-checkin “comment required” “ruby c:\triggers\check-comments.rb”

And this is a sample that check if a comment is provided in the checkin operation:

c = ENV['PLASTIC_COMMENT']
if (c == nil || c == '') then exit(1) end

You can tune it to check the comment lenght.

The thing I don't understand is this part:

Can I use my V4 test instance to create and verify a trigger that I'll use in V3?

If you are going to use Plastic SCM 3.0 the trigger must be created in the Plastic SCM 3.0 and if you are going to use Plastic SCM 4.0 you have to create it in the Plastic SCM 4.0 server. There's no communication between 3.0 and 4.0.

But if you already have a trigger (the ruby file for example) you can use it in both servers, that's not a problem.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...