# # Copyright 2005 Perforce Software. All rights reserved. # # # Site specific paths # P4BINDIR specifies where the trigger routines are located # P4LOGDIR specifies where to write the log files # P4_BIN="EJP_P4_BIN" P4BINDIR="EJP_TRIGGERS_DIR/" P4LOGDIR="EJP_TRIGGERS_LOG_DIR/" P4PORT="EJP_P4D_PORT" P4USER="EJP_P4USER" P4SPECSUFFIX="EJP_P4SPEC_SUFFIX" # # The email address from which the notifications are to be sent # P4ADMINEMAIL="TRIGGER_EMAIL_ADDR" # # Site specific jobspec fields # # P4HISTORYFIELD specifies which field to use for change history # P4CLOSEDBYFIELD specifies the field for saving the closing userid # P4STATUSFIELD specifies the field for current job status # P4RELATEDJOBSFIELD specifies the field for listing related jobids # P4REPORTEDBYFIELD specifies the field for saving the reporting userid # P4OWNEDBYFIELD specifies the field for current job ownerid # P4INTERESTEDINFIELD specifies the field for listing userids to notify # P4DESCRIPTIONFIELD specifies the field for current description of job # P4DUPLICATEOFFIELD specifies the field for saving jobid of which this dups # P4DUPLICATEJOBSFIELD specifies the field for listing duplicate jobids # P4FIXESFIELD specifies the field for listing changelists # P4HISTORYFIELD = "History" # Automatically READ-ONLY P4CLOSEDBYFIELD = "ClosedBy" # Automatically READ-ONLY P4STATUSFIELD = "Status" P4RELATEDJOBSFIELD = "RelatedJobs" P4REPORTEDBYFIELD = "ReportedBy" P4OWNEDBYFIELD = "OwnedBy" P4INTERESTEDINFIELD = "InterestedIn" P4DESCRIPTIONFIELD = "Description" P4DUPLICATEOFFIELD = "DuplicateOf" P4DUPLICATEJOBSFIELD ="DuplicateJobs" # Automatically READ-ONLY P4FIXESFIELD = "Fixes" # Automatically READ-ONLY P4PRODUCTFIELD = "Subsystem" # # Site specific jobspec fields, should normally be these values # # P4JOBFIELD specifies the require jobid field # P4MODIFIEDBYFIELD specifies the userid of the last modifier # P4REPORTEDDATEFIELD specifies the date of the job creation # P4MODIFIEDDATEFIELD specifies the date of the last modification # P4LASTACION specifies the last type of action done on the job P4JOBFIELD = "Job" P4MODIFIEDBYFIELD = "ModifiedBy" P4REPORTEDDATEFIELD = "ReportedDate" P4MODIFIEDDATEFIELD = "ModifiedDate" P4LASTACTIONFIELD = "LastAction" # # P4INTERESTED: These are the people who are to be notified of any # new jobs or changes to existing jobs # # Values: userid - email will be looked up using p4 user # mbox@domain - use this # P4INTERESTED = { "*" => "admin", "ejp" => "alan_h_teague", "p4perl" => "paul_allen", "p4python" => "sven_knop", "p4ruby" => "tony_smith", "p4win" => "mattaway", "p4web" => "mattaway", } # # P4FLOW defines the default owners to be assigned when a job is # created, closed, and released (definition of released is contained # in P4Logic.rb for the specific site). The owner to be assigned # can be either a UserID, a reference to a field in the job (e.g., # $ReportedBy, or a reference to another state to be used for the # lookup (e.g., %open which means use the value as if the state were # open). An empty string indicates that the owner field should be # left unchanged. # # * is used as a catch-all for undefined specific product:state pairs # P4FLOW = { "*:*" => "", "*:open" => "", "*:inprogress" => "", "*:punted" => "$ReportedBy", "*:closed" => "$ReportedBy", "*:duplicate" => "$ReportedBy", "*:obsolete" => "$ReportedBy", "*:released" => "$ReportedBy", "ejp:open" => "alan_h_teague", "p4perl:open" => "paul_allen", "p4python:open" => "sven_knop", "p4ruby:open" => "tony_smith", "p4win:open" => "mattaway", "p4web:open" => "mattaway", } # # P4IGNORE specifies which fields are to NOT have history generated # for changes, deletions, and additions # P4IGNORE = [ P4LASTACTIONFIELD, P4JOBFIELD, P4MODIFIEDBYFIELD, P4REPORTEDDATEFIELD, P4MODIFIEDDATEFIELD, P4HISTORYFIELD, ] # # P4READONLY specifies which fields are to only be modified by the # the EJP system and so are read-only for the user # P4READONLY = [ P4DUPLICATEJOBSFIELD, P4FIXESFIELD, P4CLOSEDBYFIELD, P4HISTORYFIELD, ] # # Duplicate processing specifications: # # P4DUPCOPY specifies which fields are to be copied into the base # job from the duplicate # P4DUPCUT specifies which fields are to be copied into the base # job from the duplicate and removed from the duplicate # P4DUPCOPY = [ P4RELATEDJOBSFIELD, ] P4DUPCUT = [ ]