Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 Server Administration Documentation | 2025.1

# Triggers with fetch and push

P4 Server triggers are user-written programs called by a P4 Server when certain operations are performed. You use triggers to extend or customize P4 Server functionality. Triggers are of different types, depending on the event that causes the trigger to execute.

The trigger types in the list below have been defined to help you customize the processing done in committing changes in a distributed versioning environment. These three types can be invoked during the execution of the `p4 push`, `p4 fetch`, or `p4 unzip` commands.

- Use push-submit triggers to customize processing during that phase of the `push`/`fetch`/`unzip` command when metadata has been transferred but files have not yet been transferred.
- Use push-content triggers to customize processing during that phase of the `push`/`fetch`/`unzip` command when files have been transferred but their contents have not yet been committed.
- Use `push-commit` triggers to do any clean up work or other post processing work after changes have been committed.

Push triggers are disabled by default for the `p4 unzip` command. See the `p4 unzip` command in the P4 CLI Reference for instructions on how to enable push triggers.

For more information, see Triggering on pushes and fetches.

Your search for returned results