tests/assets/releaseDefinition.json
{
"source": 2, "revision": 82, "description": null, "createdBy": { "displayName": "Mathieu.Gravil", "url": "https://app.vssps.visualstudio.com/A7ec1c3fc-8d29-4313-9db5-dd6598c70dd8/_apis/Identities/766ad09b-7243-6a3d-b31f-ad0ff90beda1", "_links": { "avatar": { "href": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx" } }, "id": "766ad09b-7243-6a3d-b31f-ad0ff90beda1", "uniqueName": "Mathieu.Gravil@Total.com", "imageUrl": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx", "descriptor": "aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx" }, "createdOn": "2019-05-22T15:44:05.023Z", "modifiedBy": { "displayName": "Mathieu.Gravil", "url": "https://app.vssps.visualstudio.com/A7ec1c3fc-8d29-4313-9db5-dd6598c70dd8/_apis/Identities/766ad09b-7243-6a3d-b31f-ad0ff90beda1", "_links": { "avatar": { "href": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx" } }, "id": "766ad09b-7243-6a3d-b31f-ad0ff90beda1", "uniqueName": "Mathieu.Gravil@Total.com", "imageUrl": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx", "descriptor": "aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx" }, "modifiedOn": "2019-06-06T08:56:15.680Z", "isDeleted": false, "variables": { "appdomainname": { "value": "azr.tgscloud.net" }, "apphostname": { "value": "games-dev-tetris" }, "appname": { "value": "tetris" }, "apppath": { "value": "NONE" }, "environment": { "value": "test" }, "helmParams": { "value": "--set env.service.type=LoadBalancer --set hpa.minReplicas=1 --set hpa.maxReplicas=2 --set hpa.cpu=10 " }, "projectname": { "value": "msa" }, "chartversion": { "value": "13778" } }, "variableGroups": [], "environments": [{ "id": 32, "name": "Stage 1", "rank": 1, "owner": { "displayName": "Mathieu.Gravil", "url": "https://app.vssps.visualstudio.com/A7ec1c3fc-8d29-4313-9db5-dd6598c70dd8/_apis/Identities/766ad09b-7243-6a3d-b31f-ad0ff90beda1", "_links": { "avatar": { "href": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx" } }, "id": "766ad09b-7243-6a3d-b31f-ad0ff90beda1", "uniqueName": "Mathieu.Gravil@Total.com", "imageUrl": "https://tgits-code.visualstudio.com/_apis/GraphProfile/MemberAvatars/aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx", "descriptor": "aad.NzY2YWQwOWItNzI0My03YTNkLWIzMWYtYWQwZmY5MGJlZGEx" }, "variables": {}, "variableGroups": [], "preDeployApprovals": { "approvals": [{ "rank": 1, "isAutomated": true, "isNotificationOn": false, "id": 94 } ], "approvalOptions": { "requiredApproverCount": null, "releaseCreatorCanBeApprover": false, "autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped": false, "enforceIdentityRevalidation": false, "timeoutInMinutes": 0, "executionOrder": 1 } }, "deployStep": { "id": 95 }, "postDeployApprovals": { "approvals": [{ "rank": 1, "isAutomated": true, "isNotificationOn": false, "id": 96 } ], "approvalOptions": { "requiredApproverCount": null, "releaseCreatorCanBeApprover": false, "autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped": false, "enforceIdentityRevalidation": false, "timeoutInMinutes": 0, "executionOrder": 2 } }, "deployPhases": [{ "deploymentInput": { "parallelExecution": { "parallelExecutionType": 0 }, "agentSpecification": null, "skipArtifactsDownload": false, "artifactsDownloadInput": { "downloadInputs": [] }, "queueId": 816, "demands": [], "enableAccessToken": false, "timeoutInMinutes": 0, "jobCancelTimeoutInMinutes": 1, "condition": "succeeded()", "overrideInputs": {} }, "rank": 1, "phaseType": 1, "name": "Agent job", "refName": null, "workflowTasks": [{ "environment": {}, "taskId": "068d5909-43e6-48c5-9e01-7c8a94816220", "version": "0.*", "name": "Install Helm 2.9.1", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "helmVersion": "2.9.1", "checkLatestHelmVersion": "true", "installKubeCtl": "true", "kubectlVersion": "1.8.9", "checkLatestKubeCtl": "true" } }, { "environment": {}, "taskId": "e0b79640-8625-11e8-91be-db2878ff888a", "version": "0.*", "name": "Universal download", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "command": "download", "downloadDirectory": "$(System.DefaultWorkingDirectory)", "internalOrExternalDownload": "internal", "externalEndpoint": "", "feedListDownload": "f06beeaa-49bd-4153-8ac0-7c8f28e87838", "packageListDownload": "e9d1e8d9-69d1-4df8-adf4-ba9d35b5c73c", "versionListDownload": "0.0.30", "feedDownloadExternal": "", "packageDownloadExternal": "", "versionDownloadExternal": "", "publishDirectory": "$(Build.ArtifactStagingDirectory)", "internalOrExternalPublish": "internal", "externalEndpoints": "", "feedListPublish": "", "publishPackageMetadata": "true", "packageListPublish": "", "feedPublishExternal": "", "packagePublishExternal": "", "versionPublishSelector": "patch", "versionPublish": "", "packagePublishDescription": "", "verbosity": "Information", "publishedPackageVar": "" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "AksLogin", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nAksLogin $(tenantid) $(subscriptionaks) $(resourcegroup) $(clustername) $(spappid) $(sppasswd)\n\n", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "AddRepo", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nAddRepo $(acr-server-login-it) $(acr-user-it) $(acr-password-it)\nhelm repo list", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "CreateNamespace", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nCreateNamespace $(projectname) $(environment)", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "CreateDockerSecret", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nCreateDockerSecret \"$(projectname)-$(environment)\" $(acr-server-login) $(acr-user) $(acr-password)", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "CreateQuota", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nCreateQuota $(projectname) $(environment)", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "DeployHelmPackage", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash ;source Release.bash\nDeployHelmPackage $(projectname) $(appname) $(environment) $(chartversion) ${RELEASE_ARTIFACTS__BUILD_TOTAL_HP_BUILDNUMBER} $(acr-server-login) $(acr-server-login-it) $(chartname) \"$(helmParams)\" \n", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "ConfigureApplicationGateway", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nbackend_ip=$(GetServiceType $(projectname) $(appname) $(environment))\necho ${backend_ip}\nif [[ ${backend_ip} != \"ClusterIP\" ]]\nthen\nif [[ ${backend_ip} != \"No Service\" ]]\nthen\nConfigureApplicationGateway $(subscriptionaks) $(resourcegroup) $(appgwname) $(clustername) $(projectname) $(appname) $(appdomainname) $(environment) ${backend_ip} $(apphostname) $(apppath) $(kvcert) $(certname) $(subscriptiondns)\nfi\nfi", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } }, { "environment": {}, "taskId": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b", "version": "3.*", "name": "CreateDnsCnameEntry", "refName": "", "enabled": true, "alwaysRun": false, "continueOnError": false, "timeoutInMinutes": 0, "definitionType": "task", "overrideInputs": {}, "condition": "succeeded()", "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "source $(System.DefaultWorkingDirectory)/Release.bash\nCreateDnsCnameEntry $(subscriptiondns) $(resourcegroupdns) $(dnszone) $(apphostname) $(appgwname)", "workingDirectory": "", "failOnStderr": "false", "noProfile": "true", "noRc": "true" } } ] } ], "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": [], "currentRelease": { "id": 504, "url": "https://tgits-code.vsrm.visualstudio.com/ed0804c8-33d1-44b5-8c00-6181c551233f/_apis/Release/releases/504", "_links": {} }, "retentionPolicy": { "daysToKeep": 30, "releasesToKeep": 3, "retainBuild": true }, "processParameters": {}, "properties": {}, "preDeploymentGates": { "id": 0, "gatesOptions": null, "gates": [] }, "postDeploymentGates": { "id": 0, "gatesOptions": null, "gates": [] }, "environmentTriggers": [], "badgeUrl": "https://tgits-code.vsrm.visualstudio.com/_apis/public/Release/badge/ed0804c8-33d1-44b5-8c00-6181c551233f/17/32" } ], "artifacts": [], "triggers": [], "releaseNameFormat": "Release-$(rev:r)", "tags": [], "pipelineProcess": { "type": 1 }, "properties": { "DefinitionCreationSource": { "$type": "System.String", "$value": "ReleaseNew" } }, "id": 17, "name": "fakeRelease", "path": "\\TGITS-TESTS", "projectReference": null, "url": "https://tgits-code.vsrm.visualstudio.com/ed0804c8-33d1-44b5-8c00-6181c551233f/_apis/Release/definitions/17", "_links": { "self": { "href": "https://tgits-code.vsrm.visualstudio.com/ed0804c8-33d1-44b5-8c00-6181c551233f/_apis/Release/definitions/17" }, "web": { "href": "https://tgits-code.visualstudio.com/ed0804c8-33d1-44b5-8c00-6181c551233f/_release?definitionId=17" } } } |