Skip to content

Commit be56f17

Browse files
authored
Removed retry from Update Deployment & Ping Application M138 (#8099)
1 parent 02be555 commit be56f17

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

Tasks/AzureRmWebAppDeploymentV3/operations/AzureAppServiceUtility.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ export class AzureAppServiceUtility {
7373
var webRequest = new webClient.WebRequest();
7474
webRequest.method = 'GET';
7575
webRequest.uri = applicationUrl;
76-
var response = await webClient.sendRequest(webRequest);
76+
let webRequestOptions = {retriableErrorCodes: [], retriableStatusCodes: [], retryCount: 1, retryIntervalInSeconds: 5};
77+
var response = await webClient.sendRequest(webRequest, webRequestOptions);
7778
tl.debug(`App Service status Code: '${response.statusCode}'. Status Message: '${response.statusMessage}'`);
7879
}
7980
catch(error) {

Tasks/AzureRmWebAppDeploymentV3/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 3,
1818
"Minor": 4,
19-
"Patch": 0
19+
"Patch": 1
2020
},
2121
"releaseNotes": "What's new in Version 3.0: <br/>&nbsp;&nbsp;Supports File Transformations (XDT) <br/>&nbsp;&nbsp;Supports Variable Substitutions(XML, JSON) <br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more Information.",
2222
"minimumAgentVersion": "2.104.1",

Tasks/AzureRmWebAppDeploymentV3/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"version": {
1717
"Major": 3,
1818
"Minor": 4,
19-
"Patch": 0
19+
"Patch": 1
2020
},
2121
"releaseNotes": "ms-resource:loc.releaseNotes",
2222
"minimumAgentVersion": "2.104.1",

Tasks/AzureRmWebAppDeploymentV4/operations/AzureAppServiceUtility.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ export class AzureAppServiceUtility {
8585
var webRequest = new webClient.WebRequest();
8686
webRequest.method = 'GET';
8787
webRequest.uri = applicationUrl;
88-
var response = await webClient.sendRequest(webRequest);
88+
let webRequestOptions = {retriableErrorCodes: [], retriableStatusCodes: [], retryCount: 1, retryIntervalInSeconds: 5};
89+
var response = await webClient.sendRequest(webRequest, webRequestOptions);
8990
tl.debug(`App Service status Code: '${response.statusCode}'. Status Message: '${response.statusMessage}'`);
9091
}
9192
catch(error) {

Tasks/AzureRmWebAppDeploymentV4/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 4,
2020
"Minor": 2,
21-
"Patch": 6
21+
"Patch": 7
2222
},
2323
"releaseNotes": "What's new in version 4.* (preview)<br />Supports Kudu Zip Deploy<br />Supports App Service Environments<br />Improved UI for discovering different App service types supported by the task<br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more Information.",
2424
"minimumAgentVersion": "2.104.1",

Tasks/AzureRmWebAppDeploymentV4/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 4,
2020
"Minor": 2,
21-
"Patch": 6
21+
"Patch": 7
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",
2424
"minimumAgentVersion": "2.104.1",

Tasks/Common/azure-arm-rest/azure-arm-app-service-kudu.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export class Kudu {
7878
httpRequest.uri = this._client.getRequestUri(`/api/deployments/${requestBody.id}`);
7979

8080
try {
81-
var response = await this._client.beginRequest(httpRequest);
81+
let webRequestOptions = {retriableErrorCodes: [], retriableStatusCodes: [], retryCount: 1, retryIntervalInSeconds: 5};
82+
var response = await this._client.beginRequest(httpRequest, webRequestOptions);
8283
tl.debug(`updateDeployment. Data: ${JSON.stringify(response)}`);
8384
if(response.statusCode == 200) {
8485
console.log(tl.loc("Successfullyupdateddeploymenthistory", response.body.url));

0 commit comments

Comments
 (0)