Legacy - Publish an application from ServiceNow Studio when linked to Source Control

  • Release version: Xanadu
  • Updated August 1, 2024
  • 1 minute to read
  • You can publish a custom application from ServiceNow Studio when linked to Source Control.

    Before you begin

    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 Building applications with ServiceNow Studio.

    Role required: admin

    About this task

    When you publish an application from ServiceNow Studio that is linked to Source Control, there is a different outcome than when you publish via the sys_app or sys_store_app Publish related link.

    Procedure

    1. When you select Publish, the sys_app or sys_app_customization record for the application is updated with the new version.
    2. The current state of the application is committed to Source Control, including any untracked or uncommitted changes.
      The value of the glide.sourcecontrol.default_commit_mode property is ignored.
      This occurs because when the application is published, all the untracked and uncommitted changes are also published. Therefore, the state of the application in the Git repository matches what is published. See the Legacy - Commit changes topic for more information about the glide.sourcecontrol.default_commit_mode property.
    3. A Source Control tag is created for the new version and the application is published.
      If needed, the sys_app record is updated with the new store correlation ID.
      Note:
      If your application is linked to Source Control and you publish a new version outside of Studio, a source control commit and tag are not created.