...
You can either set default values by simple assignment, in which case all projects will inherit the same values when Perforce is selected for SCM Type. Another option can be to use if statement to check for PERFInstanceCode and setup different values based on the Perforce instance selected by user. The second option provides a better approach if you have more than one Perforce repository in your environment.
Default Script Variables
...