script trigger variable (2023)

%action%

null or a string representing the action to be performed on the changelist or task.

For example,"Added pending changes 123"THE"Approved Changes 124 Deleted" Possible%action%valuesChangeform and "created task 000123"THE"work000123 Editing" Possible%action%valueWorkform.

submission of the form

%File List% Contains the name of the download file download the file

%argc%

Number of command parameters.

Exceptfile

% arguments %

Command parameter string.

Exceptfile

%reference arguments%

The command parameter string contains the command parameters as a comma-separated list of percent encoded position.

Exceptfile

%A changelog%,%Change%

Approved change list number. abbreviation%Change%equivalent%A changelog%.

ONEcommitment to changeThe trigger is passed to the pending changelist number. ANDcommitment to changeThe trigger receives a changelist number to commit.

ONEsuspendedLubdeletion pendingThe trigger receives the number of the shelf change list.

Change Upload Push Upload Change Content Push Content Change Upload Push Upload Edit Add Edit Delete Form Upload Wait Upload Wait Delete

%changeroot%

Root path of the commit file.

push commit change

%Customer%

The client workspace name of the activation user.

All

%cwd% of the client

The client's current working directory.

Exceptfile

%client_host%

The hostname of the user's workstation (even if connected through a proxy, proxy, mirror, or edge server).

All

%Customer%

The IP address of the user's workstation (even if connected through a proxy, proxy, replica or edge server).

All

%client prog%

User client application name. For example,P4V, P4Win

All

%client version%

The version of the user agent.

All

%Series%

Command name.

Exceptfile

%warehouse name% TengraphicsThe repository where the repository is located.
Image Upload Started Image Push Report Image Push Report Completed Image Push Completed
%E-MAIL% User email address. LookStart Multi-Factor Authentication (MFA).
auth-pre-2faauth-init-2faauth-check-2fa

%document%

Repository based file pathMap:side. IfMap:the field is relativeP4ROOT, Ten%document%is the server-side path relative toP4ROOT.IfMap:the field is an absolute path,%document%is an absolute server-side path.

file

%firstPushedChange%

The first new changelist number.

LookAdditional triggers for push and get commands.

Series

%table file%

The path to the temporary form specification file. from the edit formexistsLubGo outsideactivation, replace this file. The file is read-only for type triggersrescueIremove.

send form save form send notification form delete form

%table name%

Form name (for example, branch name or changelist number).

form submit save form form submit notification delete

%table type%

form type (egbranch,Changeetc.).

form submit save form form submit notification delete
%Full name and surname% Full username. LookStart Multi-Factor Authentication (MFA).
auth-pre-2faauth-init-2faauth-check-2fa

%club%

Space-separated list of groups the user belongs to.

Exceptfile

%host% The IP address of the user's host computer. LookStart Multi-Factor Authentication (MFA).
auth-pre-2faauth-init-2faauth-check-2fa

%indirect service%

There is a broker or agent.

Exceptfile

%Work%

The job number string expanded to the parameter to userepair p4order or any job number added to (or removed from)Work:in the fieldsubmission p4, Lubp4 changesform.

correction-addition, correction-deletion

%lastPushedChange%

Latest new changelist number.

LookAdditional triggers for push and get commands.

Series

%maxErrorSeverity%

aempty,error, Lubwarn.

Exceptfile

%maxErrorText%

Error number and text.

Exceptfile

%maxLockTime%

A user-defined value that specifies the maximum number of milliseconds allowed for database locks. If this variable is set, it means that the user has overridden the group setting for this value.

Exceptfile

%Maximum Scores%

A user-defined value that specifies the amount of data that is cached when the command is executed. If this variable is set, it means that the user has overridden the group setting for this value.

Exceptfile

%maxScanRows%

A user-defined value that specifies the maximum number of rows to scan in one operation. If this variable is set, it means that the user has overridden the group setting for this value.

Exceptfile

%method% Authentication method from list methods (can be set to "unknown"). LookStart Multi-Factor Authentication (MFA). %New price% LookEnable warehouse using chart type. Map push report

%oldchangelist%

If the changelist was renumbered during the commit, this variable contains the old changelist number.

push commit change
%oldValue% LookEnable warehouse using chart type. Map push report

%op%

Mode:To read,To write, Lubremove.

file

%peerhost%

If the command was sent through a proxy, proxy, replica, or edge server, the host name of the proxy, proxy, replica, or edge server. (If you send the command directly,%peerhost%matches%client_host%)

All

%contemporary%

If the command was sent through a proxy, proxy, replica, or edge server, the IP address of the proxy, proxy, replica, or edge server. (If you send the command directly,%contemporary%matches%Customer%)

All

%P4PORT%

The port of the host to which the client is connecting. If the client connects to the server through a proxy, the proxy's port number will be stored there. It would be the same without an intermediary%server address%Exchange.

authorization check(client scenario only)

%motivator% User assigned pressure. LookEnable warehouse using chart type.
Image Upload Started Image Push Report Image Push Report Completed Image Push Completed

%Bibliography%

double quote.

All

%report% LookEnable warehouse using chart type.

Map push report

%refFlag% %refType% %repo%

repurchase agreement it has.gitas a suffix, but otherwise z%repoNazwa%.

Image Upload Started Image Push Report Image Push Report Completed Image Push Completed
%repoNazwa%

Repository name. LookEnable warehouse using chart type.

% motor rotation %

File revisions

file

%plan% The authentication scheme defined by init-auth (can be set to "unknown"). See youStart Multi-Factor Authentication (MFA). auth-init-2fa

%server address%

IP address and portSpiral Server, available only in the context of client-side scenarios specified byEntrance P4 SO.

authorization check(client scenario only)

%central server%

host nameSpiral Server.

All

%servant%

valueSpiral Serverzserver id.Lookserver p4insideReference to P4 commandsLearn more.

All

%server IP%

Server IP address.

All

%server name%

valueSpiral ServerzP4NAME.

All

%server port%

Transport, IP address and port forSpiral Server, the form isprefix:IP address:Port.

prefixit can be one ofSSL,TCP6, LubSSL6what does the command meanp4 -p %server port%It can be used to connect to the server, regardless of the connection type the server is using.

All

%main server%

TenP4ROOTInformerSpiral Server.

All

%server support%

A string specifying the role of the server. one of the following:

  • role model
  • facsimile
  • broker
  • means
  • report server
  • edge server
  • forward copy
  • create a server
  • Authorization P4
  • Changes P4

Exceptfile

%server version%

The server version string that terminates if the command terminates prematurely. Complaint due%TypTerm%.

Exceptfile

%specdef%

Expands to the normal sequence of the appropriate form.

form

%send to server%

If it is not a distributed installation,%send to server%always empty.

In a distributed installation, for any change trigger:

  • If the commit was performed on the commit server,%send to server%equal%servant%.
  • If uploading to an edge server,%send to server%not equal%servant%.In this case,%send to server%Record the edge server ID.

If copies are transferred between the commit server and the edge server then%send to server%The ID of the server that actually contains the uploaded copy.

Lookserver p4insideReference to P4 commands.

approval of change approval of change content approval of change

Does not applyType-*descent.

%end%

value0Indicates that the command has completed. value1Indicates that the command has not completed.

%TypTerm%

Reason for early termination. It can be one of the following:

  • "p4 monitor terminated"
  • client disconnected
  • Maximum number of scan lines
  • maximum block time
  • maximum score

See also%server version%.

Exceptfile

%mark% Hidden token from last start authentication (can be empty). See youStart Multi-Factor Authentication (MFA). auth-init-2fa %activation directory% Pull.trigger.dir for tmp filesActivations for external file transfers tassel content

%triggerMeta_action%

The command to execute when the trigger fires. The last field defined by the trigger. Only set when the script is run from the repository.

Exceptfile

%triggerMeta_depotFile%

The third field in the trigger definition. Its meaning varies depending on the type of trigger. For change commit trigger rules, this is the path it is expected to match. For form tag rules, this can be the type of form to which the rule is supposed to apply. See the trigger type description for more information on what this field means.

Exceptfile

%triggerMeta_name%

Trigger Name: The first field in the trigger definition. Only set when the script is run from the repository.

Exceptfile

%triggerMeta_trigger%

Trigger Type: The second field in the trigger definition. Only set when the script is run from the repository.

Exceptfile

%user%

spiral serverThe name of the activating user.

All

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated: 07/25/2023

Views: 5471

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.