# This is the config file for the trigger CreateSwarmReview.py # Also for RequireJob.py # In an SDP installation the default location is /p4/common/config # But it can be specified on the command line (so in trigger table entry) # It is a standard Yaml format - when in doubt put quotes around string values! # api: API version for Swarm. "api/v6" is 2017.2 api: "api/v6" # user: Perforce user name to access Swarm as user: p4swarm # ticket: P4 Ticket for the above user - generate with: # p4 -u <username> login -ap ticket: AA1233C0FD5EF69605B08070AFB86711 # review_description: The default review description. # Can be a single quoted string (with embedded '\n' for newlines, or an array of quoted strings. # The values $jobDescription and $changeDescription if found will be expanded as # appropriate. review_description: - "$jobDescription" - "" - "<Please edit these fields as desired>" - "Review type: Delta/Full" # Projects - an array of project entries # Each project expected to have entries for: # require_job: y/n - for pre-submit trigger - whether a job is required or not # create_review: y/n - whether to create a review on submit # update_review: y/n - if y then try and update the first review found associated with linked job # depot_paths: an array of values for which to process other fields # Controlling here allows you to not have to update the trigger table entry every # time you wish to adjust. Also, it is possible to have this file be updated by ordinary # users and not just superusers. You can even auto-sync this file if required via trigger. # Use quotes if spaces in the path, or if you have an exclude mapping ("-//some/path/...") # default_reviewers: an array of user ids - reviewers to be added by by default for reviews for this project projects: - name: ProjectA create_review: y require_job: y update_review: n depot_paths: - //depot/inside/A/... - //depot/inside/A1/... - "-//depot/inside/....c" default_reviewers: - user1 - user2 - name: ProjectB create_review: n require_job: y update_review: n depot_paths: - //depot/inside/B/... - //depot/inside/B2/... default_reviewers: - user1 - user2
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 23418 | Robert Cowham |
New trigger with test. Reworked sample yaml file to Workflow.yaml |
||
#3 | 23131 | Robert Cowham | New RequireJob pre-submit trigger. | ||
#2 | 23122 | Robert Cowham | Add functionality to allow depot paths to be specified in groups | ||
#1 | 23074 | Robert Cowham | Sample Yaml config file |