Environment variables

Environment variables give scripts access to most of the event information. Any variable that does not apply to the event that fired the trigger will be empty. These variables can also be used with email templates by placing the variable name between percent (%) symbols, e.g., %SSCM_USER%.Variables marked with an asterisk (*) can only be used with the email template file list field code and scripts.

Variable
Definition
SSCM_TRIGGERDESC
Trigger description
SSCM_EVENT
Event that fired the trigger
SSCM_BEFOREAFTER
Indicates the trigger fired before or after the event
SSCM_DATE
Date the trigger fired
SSCM_TIME
Time the trigger fired
SSCM_USER
User that caused the event to occur
SSCM_CLIENTIP
User’s IP address
SSCM_CLIENTMACHINE
User’s machine name
SSCM_MAINLINE
Mainline branch the specified file is in
SSCM_BRANCH
Branch the specified file is in
SSCM_BRANCHTYPE
Type of branch the specified file is in
SSCM_REPOSITORY *
Full repository path for the specified file
SSCM_FILE *
File name
SSCM_FILEVERSION *
Post-event file version
SSCM_LOCALFILE *
Full path of the local file, used with Check In or Add events only
SSCM_COMMENT *
File event comments
SSCM_SOURCEBRANCH
Source branch used for an add/promote/rebase event
SSCM_DEFECTNUMBER *
Defect number the file is attached to
SSCM_SHAREREPOSITORY
Source repository the share was created from
SSCM_OLDFILENAME
File’s original name, used with rename event
SSCM_PERMREMOVE
File was permanently removed (yes/no)
SSCM_NUMFILES
Number of files user is being notified about, used with email triggers
SSCM_FILELIST
List of files for the event, used with email triggers