Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
ReviewApp
deploys every pull request from your Git repository to a dynamic environment resource.
Syntax
# Review App v0
# Use this task under deploy phase provider to create a resource dynamically.
- task: ReviewApp@0
inputs:
resourceName: # string. Required. Resource name.
#baseEnvironmentName: # string. Environment name.
#reviewResourceName: # string. Review Resource Name.
Inputs
resourceName
- Resource name
string
. Required.
Specifies the name of an existing resource in the environment, which will be used for resource-type information.
baseEnvironmentName
- Environment name
string
.
reviewResourceName
- Review Resource Name
string
.
Task control options
All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.
Output variables
None.
Remarks
ReviewApp
deploys every pull request from your Git repository to a dynamic environment resource. Reviewers can see how those changes look as well as work with other dependent services before they’re merged into the main branch and deployed to production. This will make it easy for you to create and manage reviewApp resources and benefit from all the traceability and diagnosis capability of the environment features. By using the reviewApp keyword, you can create a clone of a resource (dynamically create a new resource based on an existing resource in an environment) and add the new resource to the environment.
For more information, see Kubernetes resource - Set up Review App and What’s new in Azure DevOps Sprint 160.
Examples
The following is a sample YAML snippet of using reviewApp
under environments.
jobs:
- deployment:
environment:
name: smarthotel-dev
resourceName: $(System.PullRequest.PullRequestId)
pool:
name: 'ubuntu-latest'
strategy:
runOnce:
pre-deploy:
steps:
- reviewApp: MainNamespace
Requirements
Requirement | Description |
---|---|
Pipeline types | YAML, Classic build |
Runs on | Agent, DeploymentGroup |
Demands | None |
Capabilities | This task does not satisfy any demands for subsequent tasks in the job. |
Command restrictions | Any |
Settable variables | Any |
Agent version | All supported agent versions. |
Task category | Utility |