Use AES with a Git source control repository
Summarize
Summary of Use AES with a Git source control repository
App developers using App Engine Studio (AES) in ServiceNow can manage application development through integration with Git source control repositories. This integration enables effective collaboration, version control, and branch management for applications linked to Git on non-production instances.
Show less
Key Features
- Source Control Actions in AES: Developers can import applications from Git, pull and apply remote changes, commit local changes, create tags for specific application versions, and create or switch branches to manage multiple application versions simultaneously.
- Collaboration Note: Only changes checked into Git are visible to other developers, ensuring synchronized work across teams.
- Repository Management in AES: Application repository credentials can be edited, commits can be managed, branches created or switched, and applications imported directly within AES.
- Limited Production Support: Source control integration is not supported on production instances. For production, applications are managed via the application repository, update sets, or AES Application sharing features.
- Git Repository Operations: Developers can modify application files outside AES, including moving files within the repository structure by setting paths in the
snsourcecontrol.propertiesfile. - File Validation and Sanitization: A
checksum.txtfile is used to detect changes made outside AES. When discrepancies occur, the system validates and sanitizes files, removing unsupported content and aborting operations if critical validation fails. - MID Server Support: Existing MID Servers can connect to Git repositories, including those behind firewalls, facilitating secure access.
Source Control Operations in AES
- Importing Applications: Import apps or customizations from Git into AES for continued development.
- Change Management: Pull remote changes, commit local changes, stash changes locally for later application, and resolve conflicts by selecting appropriate file versions.
- Versioning and Branching: Create and manage versions and branches within Git repositories directly from AES.
- Commit History: View detailed commit histories of linked applications to track development progress.
- Repository Structure Flexibility: Move application files within the Git repository to organize supporting content such as automated tests alongside application files.
Practical Benefits for ServiceNow Customers
This integration streamlines application lifecycle management by enabling developers to leverage Git workflows directly within App Engine Studio. It fosters collaboration by ensuring all changes are tracked and shared via Git, supports multiple development streams through branching, and maintains code integrity with automated validation and sanitization. The ability to manage repository credentials and access repositories behind firewalls via MID Servers adds operational flexibility and security.
App developers working in App Engine Studio (AES) can manage their data repository in numerous ways.
- 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.
Options available from App Engine Studio
- 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
- 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.
- 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.