generator-team-ignite-tour
Version:
Generates a demo environment in Azure DevOps
396 lines • 15.3 kB
JSON
{
"name": "{{ReleaseDefName}}",
"variables": {},
"variableGroups": [
"{{VariableGroup}}"
],
"environments": [
{
"name": "Dev",
"rank": 1,
"variables": {},
"variableGroups": [],
"preDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false
}
]
},
"deployStep": {},
"postDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false
}
]
},
"deployPhases": [
{
"deploymentInput": {
"parallelExecution": {
"parallelExecutionType": 0
},
"skipArtifactsDownload": false,
"artifactsDownloadInput": {
"downloadInputs": [
{
"artifactItems": [],
"alias": "{{BuildName}}",
"artifactType": "Build",
"artifactDownloadMode": "All"
}
]
},
"queueId": "{{QueueId}}",
"demands": [],
"enableAccessToken": false,
"timeoutInMinutes": 0,
"jobCancelTimeoutInMinutes": 1,
"condition": "succeeded()",
"overrideInputs": {}
},
"rank": 1,
"phaseType": 1,
"name": "Agent job",
"refName": null,
"workflowTasks": [
{
"environment": {},
"taskId": "46e4be58-730b-4389-8a2f-ea10b3e5e815",
"version": "1.*",
"name": "Azure CLI ",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"connectedServiceNameARM": "{{ConnectedServiceID}}",
"scriptLocation": "inlineScript",
"scriptPath": "",
"inlineScript": "az webapp deployment source config-zip --resource-group SRE10-app-{{ProjectName}}-dev --name tw-frontend-SRE10-{{ProjectName}}-dev --src ./{{BuildName}}/drop/frontend-dev.zip",
"args": "",
"addSpnToEnvironment": "false",
"useGlobalConfig": "false",
"cwd": "",
"failOnStandardError": "false"
}
}
]
}
],
"environmentOptions": {
"emailNotificationType": "OnlyOnFailure",
"emailRecipients": "release.environment.owner;release.creator",
"skipArtifactsDownload": false,
"timeoutInMinutes": 0,
"enableAccessToken": false,
"publishDeploymentStatus": true,
"badgeEnabled": false,
"autoLinkWorkItems": false,
"pullRequestDeploymentEnabled": false
},
"demands": [],
"conditions": [
{
"name": "ReleaseStarted",
"conditionType": 1,
"value": ""
}
],
"executionPolicy": {
"concurrencyCount": 1,
"queueDepthCount": 0
},
"schedules": [],
"retentionPolicy": {
"daysToKeep": 30,
"releasesToKeep": 3,
"retainBuild": true
},
"processParameters": {}
},
{
"name": "UAT",
"rank": 2,
"variables": {},
"variableGroups": [],
"preDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false
}
]
},
"deployStep": {},
"postDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false
}
]
},
"deployPhases": [
{
"deploymentInput": {
"parallelExecution": {
"parallelExecutionType": 0
},
"skipArtifactsDownload": false,
"artifactsDownloadInput": {
"downloadInputs": [
{
"artifactItems": [],
"alias": "{{BuildName}}",
"artifactType": "Build",
"artifactDownloadMode": "All"
}
]
},
"queueId": "{{QueueId}}",
"demands": [],
"enableAccessToken": false,
"timeoutInMinutes": 0,
"jobCancelTimeoutInMinutes": 1,
"condition": "succeeded()",
"overrideInputs": {}
},
"rank": 1,
"phaseType": 1,
"name": "Agent job",
"refName": null,
"workflowTasks": [
{
"environment": {},
"taskId": "46e4be58-730b-4389-8a2f-ea10b3e5e815",
"version": "1.*",
"name": "Azure CLI ",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"connectedServiceNameARM": "{{ConnectedServiceID}}",
"scriptLocation": "inlineScript",
"scriptPath": "",
"inlineScript": "az webapp deployment source config-zip --resource-group SRE10-app-{{ProjectName}}-uat --name tw-frontend-SRE10-{{ProjectName}}-uat --src ./{{BuildName}}/drop/frontend-uat.zip",
"args": "",
"addSpnToEnvironment": "false",
"useGlobalConfig": "false",
"cwd": "",
"failOnStandardError": "false"
}
}
]
}
],
"environmentOptions": {
"emailNotificationType": "OnlyOnFailure",
"emailRecipients": "release.environment.owner;release.creator",
"skipArtifactsDownload": false,
"timeoutInMinutes": 0,
"enableAccessToken": false,
"publishDeploymentStatus": true,
"badgeEnabled": false,
"autoLinkWorkItems": false,
"pullRequestDeploymentEnabled": false
},
"demands": [],
"conditions": [
{
"name": "Dev",
"conditionType": 2,
"value": "4"
}
],
"executionPolicy": {
"concurrencyCount": 1,
"queueDepthCount": 0
},
"schedules": [],
"retentionPolicy": {
"daysToKeep": 30,
"releasesToKeep": 3,
"retainBuild": true
},
"processParameters": {}
},
{
"name": "Prod",
"rank": 3,
"variables": {},
"variableGroups": [],
"preDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false
}
]
},
"deployStep": {},
"postDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false
}
]
},
"deployPhases": [
{
"deploymentInput": {
"parallelExecution": {
"parallelExecutionType": 0
},
"skipArtifactsDownload": false,
"artifactsDownloadInput": {
"downloadInputs": [
{
"artifactItems": [],
"alias": "{{BuildName}}",
"artifactType": "Build",
"artifactDownloadMode": "All"
}
]
},
"queueId": "{{QueueId}}",
"demands": [],
"enableAccessToken": false,
"timeoutInMinutes": 0,
"jobCancelTimeoutInMinutes": 1,
"condition": "succeeded()",
"overrideInputs": {}
},
"rank": 1,
"phaseType": 1,
"name": "Agent job",
"refName": null,
"workflowTasks": [
{
"environment": {},
"taskId": "46e4be58-730b-4389-8a2f-ea10b3e5e815",
"version": "1.*",
"name": "Azure CLI ",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"connectedServiceNameARM": "{{ConnectedServiceID}}",
"scriptLocation": "inlineScript",
"scriptPath": "",
"inlineScript": "az webapp deployment source config-zip --resource-group SRE10-app-{{ProjectName}}-prod --name tw-frontend-SRE10-{{ProjectName}}-prod --src ./{{BuildName}}/drop/frontend-prod.zip",
"args": "",
"addSpnToEnvironment": "false",
"useGlobalConfig": "false",
"cwd": "",
"failOnStandardError": "false"
}
}
]
}
],
"environmentOptions": {
"emailNotificationType": "OnlyOnFailure",
"emailRecipients": "release.environment.owner;release.creator",
"skipArtifactsDownload": false,
"timeoutInMinutes": 0,
"enableAccessToken": false,
"publishDeploymentStatus": true,
"badgeEnabled": false,
"autoLinkWorkItems": false,
"pullRequestDeploymentEnabled": false
},
"demands": [],
"conditions": [
{
"name": "UAT",
"conditionType": 2,
"value": "4"
}
],
"executionPolicy": {
"concurrencyCount": 1,
"queueDepthCount": 0
},
"schedules": [],
"retentionPolicy": {
"daysToKeep": 30,
"releasesToKeep": 3,
"retainBuild": true
},
"processParameters": {}
}
],
"artifacts": [
{
"sourceId": "{{ProjectId}}:{{BuildId}}",
"type": "Build",
"alias": "{{BuildName}}",
"definitionReference": {
"defaultVersionBranch": {
"id": "",
"name": ""
},
"defaultVersionSpecific": {
"id": "",
"name": ""
},
"defaultVersionTags": {
"id": "",
"name": ""
},
"defaultVersionType": {
"id": "latestType",
"name": "Latest"
},
"definition": {
"id": "{{BuildId}}",
"name": "{{BuildName}}"
},
"project": {
"id": "{{ProjectId}}",
"name": "{{ProjectName}}"
}
},
"isPrimary": true
}
],
"triggers": [
{
"artifactAlias": "{{BuildName}}",
"triggerConditions": [
{
"sourceBranch": "master",
"tags": [],
"useBuildDefinitionBranch": false,
"createReleaseOnBuildTagging": false
}
],
"triggerType": 1
}
]
}