checkjob.rb

Path: checkjob.rb
Last Update: Thu Sep 16 10:22:40 BST 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]