Can a script be automated after a commit on Perforce?

霸气de小男生 提交于 2019-12-06 09:58:49

Short answer: Yes, read the documentation, page 103.

Here is a link to all of the documentation available from Perforce.

Long answer, you can edit the triggers by typing p4 triggers from the command line. You provide the name of the trigger (i.e. "my_archive"), the type of trigger (i.e. change-commit in your case), path (i.e. the //depot/path/to/the/directory/that/contains/the/files/to/zip/...), and the command_path (your script), plus any variables to pass along to your script.

Really, take a look at the docs, it is really quite simple and powerful.

If they just need read access, then just give them read access in the p4protect table. That way you avoid having to mess around with snapshots of your repository.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!