Legacy - Set default branch
Set a default branch when you want to use a branch other than main for new changes or for your main development repository.
Avant de commencer
Important :
Starting with the Xanadu release, the legacy version of ServiceNow Studio is being prepared for future deprecation. It will be hidden and no longer activated on new instances but will continue to be supported. For details on the deprecation process, see the Deprecation Process [KB0867184] article in the Now Support Knowledge Base.
Try building and editing apps in the current version of ServiceNow Studio instead. For more information, see ServiceNow Studio.
- Role required: admin
- Legacy - Link an application or application-customization to source control
Procédure
- Follow the steps to Add a system property .
- Add the glide.source_control.default_branch_name property, and specify the default branch name of the GIT source control repository to work from (pull requests, code commits, etc.).
Résultats
Application developers' work is managed from and saved into the default branch if not otherwise specified. If not changed, this value defaults to sn_instances/<instance_name>.