Deploying what you built with Build Agent
Summarize
Summary of Deploying what you built with Build Agent
This content guides ServiceNow customers on deploying applications created with Build Agent, detailing workflows and deployment methods suited for different organizational needs and app complexities. It emphasizes the importance of isolated development and testing before explicit deployment to production environments.
Show less
Deployment Workflow
- Collaborative Design: Business and IT teams collaborate on app requirements and ideas.
- AI-driven Development: Build Agent and ServiceNow Otto generate app updates from files, chat history, and diagrams.
- Review and Testing: Teams preview updates, revise, and conduct performance/readiness testing.
- Developer Review: Developers verify AI-generated changes and prepare for deployment.
- Deployment Approval: Deployment managers initiate approval processes.
- Autonomous Checks: AI agents scan for issues and remediate before deployment.
- Final Deployment: After approvals, the app is securely deployed.
Note: Changes remain isolated until explicitly deployed. Isolation methods vary by environment: ServiceNow IDE uses source/build artifacts; ServiceNow Studio uses update sets.
Deployment Methods for Build Agent Apps
- Git-based Source Control Integration: Supports Git workflows, including GitHub and Bitbucket, enabling version control, branching, merging, and automated deployments. Requires Zurich Patch 12 for use in ServiceNow Studio.
- Update Sets and Application Packaging: Uses System Update Sets to track changes, which can be packaged into scoped applications for easy transport and installation, e.g., via Application Repository (AppRepo).
Options for Moving Apps Through Instances
- Update Set Packaging: Wrap scoped applications in update sets, convert to AppRepo, publish with demo data, and deploy via ReleaseOps or standard update set processes.
- Publishing to AppRepo: Use Git or update sets to publish scoped apps for distribution across environments. Once in AppRepo, apps can be moved through ReleaseOps pipelines with automated test execution.
- Registration and Entitlement: Required before publishing apps to AppRepo.
Additional Deployment Tools
- App Engine Management Center (AEMC): Conducts governance checks on ACLs, roles, and compliance settings before deployment. Integrates with ReleaseOps for environment progression and provides deployment monitoring dashboards.
- ReleaseOps: Automates moving changes through instances using customizable playbooks, incorporating preview, commit, validation, ATF testing, and approval gates for controlled release management.
- ServiceNow SDK: Facilitates moving applications between local machines and ServiceNow instances, integrating with external CI/CD pipelines via command line interface.
- Automated Test Framework (ATF): Supports generation and execution of tests by Build Agent to verify app functionality post-changes.
Important Considerations
- Deployment via Application Repository and update sets are mutually exclusive per application on an instance; switching between methods is not supported.
- Global applications can be included in both Application Repository and source control workflows.
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 ServiceNow Otto 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.
- In the ServiceNow IDE, isolation runs through source and build artifacts until you deploy and install.
- In ServiceNow Studio, changes are tracked in update sets and promoted when you move the update set between instances.
Deployment methods for Build Agent
- Git-based source control integration: 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.
- You must be on Zurich Patch 12 to use source control in ServiceNow Studio.
- 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).
Mixing application repository and update set deployment
For more information, see the Can't mix Update Set and App Repo deployment for the same application [KB0715422] article in the Knowledge Base.