Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry and bump task versions #11232

Merged
merged 2 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Tasks/Common/packaging-common/locationUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ export async function getFeedRegistryUrl(
[vssConnection.authHandler],
vssConnection.options);
}

const data = await vssConnection.vsoClient.getVersioningData(loc.apiVersion, loc.area, loc.locationId, { feedId: sessionId, project: project });
const data = await retryOnExceptionHelper(() => vssConnection.vsoClient.getVersioningData(loc.apiVersion, loc.area, loc.locationId, { feedId: sessionId, project: project }), 3, 1000);

tl.debug("Feed registry url: " + data.requestUrl);
return data.requestUrl;
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DotNetCoreCLIV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"demands": [],
"version": {
"Major": 2,
"Minor": 156,
"Patch": 2
"Minor": 158,
"Patch": 0
},
"minimumAgentVersion": "2.115.0",
"instanceNameFormat": "dotnet $(command)",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DotNetCoreCLIV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"demands": [],
"version": {
"Major": 2,
"Minor": 156,
"Patch": 2
"Minor": 158,
"Patch": 0
},
"minimumAgentVersion": "2.115.0",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadPackageV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "ms-vscs-rm",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "1.99.0",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadPackageV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "ms-vscs-rm",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "1.99.0",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadPackageV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "ms-vscs-rm",
"version": {
"Major": 1,
"Minor": 156,
"Patch": 2
"Minor": 158,
"Patch": 0
},
"demands": [],
"releaseNotes": "Adds support to download Maven, Python, Universal and Npm packages.",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/DownloadPackageV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "ms-vscs-rm",
"version": {
"Major": 1,
"Minor": 156,
"Patch": 2
"Minor": 158,
"Patch": 0
},
"demands": [],
"releaseNotes": "ms-resource:loc.releaseNotes",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/MavenV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"releaseNotes": "Configuration of the SonarQube analysis was moved to the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) or [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) extensions, in task `Prepare Analysis Configuration`",
"demands": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/MavenV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"demands": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/MavenV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 3,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"releaseNotes": "Configuration of the SonarQube analysis was moved to the [SonarQube](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) or [SonarCloud](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarcloud) extensions, in task `Prepare Analysis Configuration`",
"demands": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/MavenV3/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 3,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"demands": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NpmAuthenticateV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NpmAuthenticateV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NpmV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 157,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
6 changes: 3 additions & 3 deletions Tasks/NpmV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 157,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down Expand Up @@ -197,4 +197,4 @@
"WorkingDirectoryNotDirectory": "ms-resource:loc.messages.WorkingDirectoryNotDirectory",
"NGCommon_AreaNotFoundInSps": "ms-resource:loc.messages.NGCommon_AreaNotFoundInSps"
}
}
}
4 changes: 2 additions & 2 deletions Tasks/NuGetCommandV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetCommandV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetPublisherV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Lawrence Gripper",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetPublisherV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "Lawrence Gripper",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetToolInstallerV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"preview": false,
"satisfies": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetToolInstallerV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"preview": false,
"satisfies": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetToolInstallerV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"preview": false,
"satisfies": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetToolInstallerV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"preview": false,
"satisfies": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"helpMarkDown": "",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"helpMarkDown": "ms-resource:loc.helpMarkDown",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/PipAuthenticateV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/PipAuthenticateV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/TwineAuthenticateV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/TwineAuthenticateV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 156,
"Patch": 1
"Minor": 158,
"Patch": 0
},
"runsOn": [
"Agent",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/UniversalPackagesV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 157,
"Minor": 158,
"Patch": 0
},
"runsOn": [
Expand Down
4 changes: 2 additions & 2 deletions Tasks/UniversalPackagesV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"category": "Package",
"version": {
"Major": 0,
"Minor": 157,
"Minor": 158,
"Patch": 0
},
"runsOn": [
Expand Down Expand Up @@ -439,4 +439,4 @@
"Error_UniversalPackagesNotSupportedOnPrem": "ms-resource:loc.messages.Error_UniversalPackagesNotSupportedOnPrem",
"Error_ProcessorArchitectureNotSupported": "ms-resource:loc.messages.Error_ProcessorArchitectureNotSupported"
}
}
}
2 changes: 1 addition & 1 deletion Tasks/UseDotNetV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 2,
"Minor": 0,
"Patch": 17
"Patch": 18
},
"satisfies": [
"DotNetCore"
Expand Down
4 changes: 2 additions & 2 deletions Tasks/UseDotNetV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 2,
"Minor": 0,
"Patch": 17
"Patch": 18
},
"satisfies": [
"DotNetCore"
Expand Down Expand Up @@ -178,4 +178,4 @@
"VersionNumberHasTheWrongFormat": "ms-resource:loc.messages.VersionNumberHasTheWrongFormat",
"OnlyExplicitVersionAllowed": "ms-resource:loc.messages.OnlyExplicitVersionAllowed"
}
}
}
4 changes: 2 additions & 2 deletions Tasks/UseNodeV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 156,
"Patch": 2
"Minor": 158,
"Patch": 0
},
"satisfies": [
"Node",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/UseNodeV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 156,
"Patch": 2
"Minor": 158,
"Patch": 0
},
"satisfies": [
"Node",
Expand Down