Use AES with a Git source control repository

  • Release version: Zurich
  • Updated July 31, 2025
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Use AES with a Git source control repository

    App Engine Studio (AES) enables application developers to integrate their application development with Git source control repositories on non-production ServiceNow instances. This integration allows developers to manage application versions, branches, and collaborate effectively by syncing changes through Git. However, source control management is not supported on production instances, where alternative methods like update sets or application repositories are used.

    Show full answer Show less

    Key Features

    • Source Control Actions in AES: Developers can import applications from Git, pull remote changes, commit local changes, create tags for specific versions, and manage multiple branches directly within AES.
    • Repository Credential Management: AES allows editing repository credentials to maintain secure access to Git repositories.
    • Git Repository Modifications: Limited support exists for modifying application files outside AES, including moving files within the repository and editing files externally. A snsourcecontrol.properties file tracks the application path, and a checksum mechanism ensures file integrity and triggers validation and sanitization processes when discrepancies are detected.
    • Sanitization Process: Automatically removes unsupported files, creates upgrade logs, and aborts or skips source control operations based on XML schema validation results to maintain repository consistency.
    • MID Server Support: Enables secure connection to Git repositories behind firewalls by leveraging existing MID Servers.
    • Source Control Operations: Includes importing apps or customizations, pulling and committing changes, creating versions and branches, stashing changes for later use, resolving conflicts by selecting app file versions, viewing commit history, and moving application files within the Git repository.
    • Supporting Content Management: Developers can store additional supporting content such as automated tests within the same Git repository as the application files.

    Practical Considerations for ServiceNow Customers

    • Only checked-in changes in Git are visible to other developers, so frequent commits are essential for effective collaboration.
    • Source control management features are available exclusively on non-production instances; production instances require different management approaches.
    • Proper configuration of the snsourcecontrol.properties file is critical when restructuring Git repository directories to ensure AES correctly locates application files.
    • Using a MID Server allows secure, firewall-protected access to Git repositories, facilitating enterprise security compliance.
    • Developers should rely on AES for the majority of source control operations to maintain consistency and leverage built-in validation and sanitization.

    App developers working in App Engine Studio (AES) can manage their data repository in numerous ways.

    After your admin has linked an application to Source control, all application developers on a non-production instance can perform these actions:
    • Import applications from a Git repository.
    • Pull and apply remote changes from a Git repository.
    • Commit all local changes on the instance to a Git repository.
    • Create tags to permanently link to a given version of an application.
    • Create branches to maintain multiple versions of an application simultaneously.
    Note:
    If you’re using source control to collaborate with other developers, only changes that have been checked in are available to other developers. For example, if an admin creates a new flow for an app that’s linked to Git, the new flow won’t be available in the app for other AES users until the admin checks the flow into Git.

    Options available from App Engine Studio

    After an application has been linked to source control, application developers can use App Engine Studio to manage the repository. From App Engine Studio, developers can:
    • Edit the application repository credentials.
    • Commit all local changes on the instance.
    • Apply remote changes from the repository.
    • Create a branch.
    • Switch branches.
    • Import an application from a remote repository.

    Source control integration does not support managing applications on a production instance. Instead, you can manage applications on a production instance using the application repository, an update set, or App Engine Studio. For more information about managing applications on a production instance, see Application sharing.

    Options available from a Git repository

    The ServiceNow platform offers limited support for modifying linked application files outside of an instance. From Git, developers can:
    • Move application files to a different Git directory structure.
    • Edit application files outside of App Engine Studio.

    The system generates a properties text file called sn_source_control.properties at the root level of the repository. To move application files to a different Git directory structure, application developers can set the path parameter to specify the subfolder path containing their application files. For example, if you moved your application to the src/app subfolder, set the path to path=src/app.

    The system generates a checksum.txt file in the Git repository to determine if any application files have been changed outside of App Engine Studio. When the checksum value from the file matches the current checksum value, the integration skips the validation and sanitization process. When the checksum values do not match, the integration validates and sanitizes the application files as part of the source control operation. The sanitization process:
    • Creates upgrade log entries for each sanitization action taken.
    • Removes unsupported folders and files from the repository.
    • Aborts all source control operations when a system application file fails XML schema validation. For example, if a database dictionary record fails XML schema validation, the system aborts all operations.
    • Skips the current source control operation when a non-system application file fails XML schema validation.

    The source control integration sanitizes only content within the application path listed in the sn_source_control.properties file. Repository content outside the application path is ignored.

    MID Server support

    Use an existing MID Server to connect to a source control repository. Accessing an application through a MID Server enables access to repositories behind a firewall.