기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
    • Migrate from Git
    • Migrate from Perforce
    • Version Control settings
    • Configure the client
    • Version Control workflow
    • Version Control tools
      • Enable dynamic workspaces (Windows)
      • Create a label
      • Create an attribute
      • Create a mergebot
      • Use Smart Locks
      • Use Xlinks
      • Use Unity Samples
      • Use triggers
        • Create your first trigger
        • Trigger checkin samples
        • Verify label creation
        • Update files before checkout
        • Example triggers
        • Create a Slack web trigger
        • Create a Discord web trigger
      • Transfer project to a different organization
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Example triggers

Explore example triggers for automating workflows in Unity Version Control.
읽는 시간 2분
최근 업데이트: 10달 전

The following examples show you sample triggers that you can use to optimize your version control workflows.

Backup trigger

Create a trigger that fires after setting a workspace selector, located at
/home/scripts/plastic-backup
at the server, and give it the name backup:
cm trigger create after-setselector backup /home/scripts/plastic-backup

Validation triggers

Label validation

Create a trigger called that fires before a label is created, that calls
validate-label.bat
at server
myserver
on port
8084
:
cm trigger create before-mklabel "Validate label" "c:\tmp\triggers\validate-label.bat" --server=myserver:8084
Create a trigger that fires before a label is created in repository default and that label starts with bl or fix:
cm trigger create before-mklabel "label-bl-fix" "c:\tmp\triggers\label-bl-fix.bat" --filter="rep:default,bl*,fix*"

Check in validation

Create a trigger that validates check in contents before the check in is actually performed in the repository, on a Windows server:
cm trigger create before-checkin ensure-code-stds "c:\plastic\triggers\checkcode.bat"

Web trigger notifications

URI notification

Create a web trigger that fires after a check in action is performed, at URI
https://www.mysite.com/api/team/checkin
and name it
Notify team
:
cm trigger create after-checkin "Notify team" "webtrigger https://www.mysite.com/api/team/checkin"
A request body example of that web trigger would be as follows:
{ "PLASTIC_CHANGESET": "cs:2341@br:/main/task4638@rep:product@repserver:plastic.mysite.com:17590", "PLASTIC_CLIENTMACHINE": "DEV1HOST", "PLASTIC_COMMENT": "Fixing command line parsing", "PLASTIC_SERVER": "plastic.mysite.com:17590", "PLASTIC_SHELVE": false, "PLASTIC_USER": "dev1", "INPUT": [ "CH \"/src/main.c\" FILE" ]}

Discord notification

Create a web trigger that fires after a check in and send notifications from the server to the specified Discord channel:
cm trigger create after-checkin NotifyTeam "webtrigger-discord https://discordapp.com/api/webhooks/<channelId>/<token>" --server=localhost:18084

Slack notification

Create a web trigger that fires after a check in and send notifications from the server to the specified Slack channel:
cm trigger create after-checkin SlackWebTrigger "webtrigger-slack https://slack.com/api/chat.postMessage/<channelId or UserId>/xoxb-SlackBotToken" --server=localhost:18084

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Backup trigger

    • Validation triggers

      • Label validation

      • Check in validation

    • Web trigger notifications

      • URI notification

      • Discord notification

      • Slack notification


이 페이지의 문제 보고