checkjob.rb
Path: checkjob.rb
Modified: Fri Sep 26 16:40:11 BST 2003

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