checkjob.rb

Path: checkjob.rb
Last Update: Fri Nov 19 09:48:32 GMT 2004

Introduction

Name: checkjob.rb

Author: Tony Smith <tony@perforce.com>

Description

     Example trigger to ensure that all changelists being
     submitted have at least one job associated.

Requires

     Ruby
     P4Ruby
     P4Triggers module

Example ‘triggers’ section

     Triggers:
        checkjob  //...  "ruby whatever/checkjob.rb %changelist%"

Note

     For triggers I recommend you use a P4CONFIG file rather than hard coding
     username/password in the script itself. This script assumes you've taken
     that advice.

Required files

P4   P4Triggers  

Classes and Modules

Class JobTrigger

[Validate]