Deploying what you built with Build Agent
Summarize
Summary of Deploying what you built with Build Agent
This guide outlines how ServiceNow customers can deploy applications created with Build Agent, detailing workflows and deployment methods to move apps from development to production efficiently and securely. It emphasizes choosing deployment approaches aligned with application complexity and organizational needs, while ensuring isolation of changes until explicit deployment and installation.
Show less
Deployment Workflow
- Collaborative Design: Business and IT teams collaborate on app requirements using preferred tools.
- AI-Driven Development: Build Agent and Now Assist leverage files, chat history, and diagrams to generate app updates.
- Review and Testing: Teams preview, revise, and conduct performance and readiness tests.
- Developer Review: Developers verify AI-generated changes and confirm readiness for deployment.
- Deployment Approval: Deployment managers initiate approval processes.
- Autonomous Checks: AI agents automatically scan for issues like sensitive data exposure and remediate them.
- Final Deployment: After approvals and scans, the app is deployed securely.
Note: Changes remain isolated and do not affect live apps until deployed. Isolation mechanisms differ by environment—using source/build artifacts in ServiceNow IDE and update sets in ServiceNow Studio.
Deployment Methods for Build Agent Apps
- Git-based Source Control Integration: Supports version control and CI/CD workflows using Git repositories (e.g., GitHub, Bitbucket) within ServiceNow IDE, enabling branching, merging, and automated deployments.
- Update Sets and Application Packaging: Traditional deployment uses System Update Sets, which can be packaged into scoped applications and transported via Application Repository (AppRepo) for easier installation across instances.
Options for Moving Apps Between Instances
- Wrapping Scoped Applications in Update Sets: Convert apps to AppRepo format, publish update sets with demo data, and deploy through ReleaseOps or standard update set processes.
- Publishing to Application Repository (AppRepo): Apps can be published via Git-based processes or update sets and then distributed across environments through ReleaseOps pipelines, which support automated testing.
- Registering and entitling apps is required before publishing to AppRepo.
Additional Deployment Tools
- App Engine Management Center (AEMC): Performs governance checks on ACLs, roles, and compliance before deployment. Provides dashboards for deployment monitoring and app version management.
- ReleaseOps: Facilitates multi-instance app promotion with customizable playbooks, automates update set validation, runs Automated Test Framework (ATF) tests, and enforces approvals before production deployment.
- ServiceNow SDK: Enables moving apps between instances and local machines via CLI. Supports integration with off-instance CI/CD pipelines.
- Automated Test Framework (ATF): Build Agent can generate ATF tests, which can be run in ServiceNow Studio or IDE to verify app functionality post-changes.
Learn about deployment methods and workflows for moving applications created with Build Agent from development to production environments. Choose the right deployment approach based on your application complexity and organizational requirements.
Workflow for deployment
- Collaborative design: Business owners and IT collaborate on requirements and ideas using their preferred tools.
- AI-driven app development: Build Agent and Now Assist process files, chat history, and diagrams to generate and implement app updates.
- Review and testing: Teams preview updates, make revisions, and run rounds of performance and readiness testing.
- Developer review: A developer reviews the AI-generated changes, compares versions, and confirms the changes are ready for deployment.
- Deployment approval: The project is handed off to a deployment manager, who initiates the deployment approval process.
- Autonomous checks: AI agents automatically scan for issues (such as sensitive data exposure or model integrity problems) and remediate them before deployment.
- Final deployment: After all readiness scans and approvals, the new app is deployed securely and efficiently.
Deployment methods for Build Agent
- Git-based source control integration with ServiceNow IDE: ServiceNow supports Git-based workflows for version control and CI/CD.
- You can push scoped apps to Git repositories, enabling branching, merging, and automated deployments. ServiceNow IDE supports bring-your-own Git integration, such as GitHub or Bitbucket.
- For more information, see Integrating source control with the ServiceNow IDE.
- Update sets and application packaging: Standard ServiceNow deployment uses System Update Sets to track changes.
- Advanced guidance includes packing update sets into scoped applications for easier transport and installation across instances, for example using Application Repository (AppRepo).
- For more information on System Update Sets, see System update sets.
Options for moving apps through instances
- Wrap the entire scoped application in an update set. The workflow is as follows:
- Go to the Custom Applications list, select an app and swap to its scope.
- Convert the app to AppRepo.
- Publish the update set with demo data.
- Put the update set in a deployment request for ReleaseOps, or follow your standard update set process for deployment.
- Publish the app to AppRepo:
- You can use a Git-based process or update sets to publish to AppRepo.
- Scoped apps, as well as apps that are ready for testing, can be published to the AppRepo for distribution across environments.
- After an app is in AppRepo, you can move it through a ReleaseOps pipeline. If ATF tests are included in the pipeline, they automatically run.
- Register and entitle apps before publishing.
- For more information on Application Repository, see ServiceNow application repository.
Additional deployment tools
- App Engine Management Center (AEMC):
- After developing an app, submit it to AEMC for governance checks.
- AEMC validates ACLs, roles, and compliance settings before deployment.
- Use ReleaseOps pipelines to move apps through environments with ATF tests and approval gates.
- AEMC provides dashboards for monitoring deployments and managing app versions throughout the lifecycle.
- For more information on AEMC, see Using the App Engine Management Center.
- ReleaseOps:
- Move changes from development to production through multiple instances using customizable playbooks.
- Automate preview, commit, and validation of update sets before deployment.
- Run Automated Test Framework (ATF) tests as part of the pipeline to validate quality.
- Deploy changes immediately or schedule releases for controlled rollouts.
- Enforce checks, scans, and approvals before production deployment.
- For more information on ReleaseOps, see ReleaseOps.
- ServiceNow SDK:
- Use the ServiceNow SDK to move applications to and from your instance to your local machine. You can integrate the ServiceNow SDK with your off-instance CI/CD process if you have one.
- Install the ServiceNow SDK locally and use the command line interface (CLI).
- Authenticate to a ServiceNow instance from the ServiceNow SDK.
- Push to or install an application on the authenticated instance from your local environment.
- Automated Test Framework (ATF)
- Tests can be generated by Build Agent and executed in ServiceNow Studio or ServiceNow IDE to confirm functionality after changes.
- For more information on ATF, see Automated Test Framework (ATF).