diff --git a/Tasks/AppCenterDistributeV1/Strings/resources.resjson/en-US/resources.resjson b/Tasks/AppCenterDistributeV1/Strings/resources.resjson/en-US/resources.resjson index b06ecc2d0491..c946550ca471 100644 --- a/Tasks/AppCenterDistributeV1/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/AppCenterDistributeV1/Strings/resources.resjson/en-US/resources.resjson @@ -38,5 +38,6 @@ "loc.messages.CannotFindAnyFile": "Cannot find any file based on %s.", "loc.messages.FoundMultipleFiles": "Found multiple files matching %s.", "loc.messages.FailedToCreateFile": "Failed to create %s with error: %s.", - "loc.messages.FailedToFindFile": "Failed to find %s at %s." + "loc.messages.FailedToFindFile": "Failed to find %s at %s.", + "loc.messages.DeprecatedTask": "The AppCenterDistribute@1 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." } \ No newline at end of file diff --git a/Tasks/AppCenterDistributeV1/appcenterdistribute.ts b/Tasks/AppCenterDistributeV1/appcenterdistribute.ts index d587a73552f2..6742d8e9a352 100644 --- a/Tasks/AppCenterDistributeV1/appcenterdistribute.ts +++ b/Tasks/AppCenterDistributeV1/appcenterdistribute.ts @@ -558,6 +558,12 @@ async function run() { await commitSymbols(effectiveApiServer, effectiveApiVersion, appSlug, symbolsUploadInfo.symbol_upload_id, apiToken, userAgent); } + let shouldFail = tl.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(tl.loc("DeprecatedTask")); + } + tl.setResult(tl.TaskResult.Succeeded, tl.loc("Succeeded")); } catch (err) { tl.setResult(tl.TaskResult.Failed, `${err}`); diff --git a/Tasks/AppCenterDistributeV1/task.json b/Tasks/AppCenterDistributeV1/task.json index 61d771498883..79f0701d7155 100644 --- a/Tasks/AppCenterDistributeV1/task.json +++ b/Tasks/AppCenterDistributeV1/task.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "minimumAgentVersion": "2.144.0", @@ -201,6 +201,7 @@ "CannotFindAnyFile": "Cannot find any file based on %s.", "FoundMultipleFiles": "Found multiple files matching %s.", "FailedToCreateFile": "Failed to create %s with error: %s.", - "FailedToFindFile": "Failed to find %s at %s." + "FailedToFindFile": "Failed to find %s at %s.", + "DeprecatedTask": "The AppCenterDistribute@1 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." } } \ No newline at end of file diff --git a/Tasks/AppCenterDistributeV1/task.loc.json b/Tasks/AppCenterDistributeV1/task.loc.json index 28213344c602..3ad7a018bd43 100644 --- a/Tasks/AppCenterDistributeV1/task.loc.json +++ b/Tasks/AppCenterDistributeV1/task.loc.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "minimumAgentVersion": "2.144.0", @@ -201,6 +201,7 @@ "CannotFindAnyFile": "ms-resource:loc.messages.CannotFindAnyFile", "FoundMultipleFiles": "ms-resource:loc.messages.FoundMultipleFiles", "FailedToCreateFile": "ms-resource:loc.messages.FailedToCreateFile", - "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile" + "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" } } \ No newline at end of file diff --git a/Tasks/AppCenterDistributeV2/Strings/resources.resjson/en-US/resources.resjson b/Tasks/AppCenterDistributeV2/Strings/resources.resjson/en-US/resources.resjson index 9c3ec1f83437..0d154f652428 100644 --- a/Tasks/AppCenterDistributeV2/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/AppCenterDistributeV2/Strings/resources.resjson/en-US/resources.resjson @@ -39,5 +39,6 @@ "loc.messages.CannotFindAnyFile": "Cannot find any file based on %s.", "loc.messages.FoundMultipleFiles": "Found multiple files matching %s.", "loc.messages.FailedToCreateFile": "Failed to create %s with error: %s.", - "loc.messages.FailedToFindFile": "Failed to find %s at %s." + "loc.messages.FailedToFindFile": "Failed to find %s at %s.", + "loc.messages.DeprecatedTask": "The AppCenterDistribute@2 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." } \ No newline at end of file diff --git a/Tasks/AppCenterDistributeV2/appcenterdistribute.ts b/Tasks/AppCenterDistributeV2/appcenterdistribute.ts index 66415fd7328d..1857f439e3df 100644 --- a/Tasks/AppCenterDistributeV2/appcenterdistribute.ts +++ b/Tasks/AppCenterDistributeV2/appcenterdistribute.ts @@ -547,6 +547,12 @@ async function run() { await commitSymbols(effectiveApiServer, effectiveApiVersion, appSlug, symbolsUploadInfo.symbol_upload_id, apiToken, userAgent); } + let shouldFail = tl.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(tl.loc("DeprecatedTask")); + } + tl.setResult(tl.TaskResult.Succeeded, tl.loc("Succeeded")); } catch (err) { tl.setResult(tl.TaskResult.Failed, `${err}`); diff --git a/Tasks/AppCenterDistributeV2/task.json b/Tasks/AppCenterDistributeV2/task.json index 7ac99376ee57..96d662b08ddb 100644 --- a/Tasks/AppCenterDistributeV2/task.json +++ b/Tasks/AppCenterDistributeV2/task.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "minimumAgentVersion": "2.144.0", @@ -203,6 +203,7 @@ "CannotFindAnyFile": "Cannot find any file based on %s.", "FoundMultipleFiles": "Found multiple files matching %s.", "FailedToCreateFile": "Failed to create %s with error: %s.", - "FailedToFindFile": "Failed to find %s at %s." + "FailedToFindFile": "Failed to find %s at %s.", + "DeprecatedTask": "The AppCenterDistribute@2 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." } } diff --git a/Tasks/AppCenterDistributeV2/task.loc.json b/Tasks/AppCenterDistributeV2/task.loc.json index fb0fbc936cd6..acf7b5407c68 100644 --- a/Tasks/AppCenterDistributeV2/task.loc.json +++ b/Tasks/AppCenterDistributeV2/task.loc.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "minimumAgentVersion": "2.144.0", @@ -203,6 +203,7 @@ "CannotFindAnyFile": "ms-resource:loc.messages.CannotFindAnyFile", "FoundMultipleFiles": "ms-resource:loc.messages.FoundMultipleFiles", "FailedToCreateFile": "ms-resource:loc.messages.FailedToCreateFile", - "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile" + "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" } } \ No newline at end of file diff --git a/Tasks/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson b/Tasks/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson index 2352ea09a954..74ac7b229902 100644 --- a/Tasks/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson @@ -24,5 +24,6 @@ "loc.messages.ReactivateExistingEnvironment": "Found existing environment %s and the task's \"Clean environment\" parameter is not set. Reactivating ...", "loc.messages.ParameterRequired": "The `%s` parameter is required", "loc.messages.PlatformNotRecognized": "Platform not recognized", - "loc.messages.PrependPath": "Prepending PATH environment variable with directory: %s" + "loc.messages.PrependPath": "Prepending PATH environment variable with directory: %s", + "loc.messages.DeprecatedTask": "The CondaEnvironment@1 (Conda environment) task has been deprecated since February 13, 2019 and will soon be retired. Use the Conda CLI ('conda') directly from a bash/pwsh/script task." } \ No newline at end of file diff --git a/Tasks/CondaEnvironmentV1/main.ts b/Tasks/CondaEnvironmentV1/main.ts index f7cfd3d0a31c..2d084e0af3ee 100644 --- a/Tasks/CondaEnvironmentV1/main.ts +++ b/Tasks/CondaEnvironmentV1/main.ts @@ -19,6 +19,11 @@ import { condaEnvironment } from './conda'; cleanEnvironment: task.getBoolInput('cleanEnvironment') }, getPlatform()); + let shouldFail = task.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(task.loc("DeprecatedTask")); + } task.setResult(task.TaskResult.Succeeded, ""); } catch (e) { #if NODE20 diff --git a/Tasks/CondaEnvironmentV1/task.json b/Tasks/CondaEnvironmentV1/task.json index 3f4ee52e5887..256fb105599c 100644 --- a/Tasks/CondaEnvironmentV1/task.json +++ b/Tasks/CondaEnvironmentV1/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "deprecated": true, @@ -101,6 +101,7 @@ "ReactivateExistingEnvironment": "Found existing environment %s and the task's \"Clean environment\" parameter is not set. Reactivating ...", "ParameterRequired": "The `%s` parameter is required", "PlatformNotRecognized": "Platform not recognized", - "PrependPath": "Prepending PATH environment variable with directory: %s" + "PrependPath": "Prepending PATH environment variable with directory: %s", + "DeprecatedTask": "The CondaEnvironment@1 (Conda environment) task has been deprecated since February 13, 2019 and will soon be retired. Use the Conda CLI ('conda') directly from a bash/pwsh/script task." } } \ No newline at end of file diff --git a/Tasks/CondaEnvironmentV1/task.loc.json b/Tasks/CondaEnvironmentV1/task.loc.json index 17f8a593c7ee..dde84a5aa260 100644 --- a/Tasks/CondaEnvironmentV1/task.loc.json +++ b/Tasks/CondaEnvironmentV1/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "deprecated": true, @@ -101,6 +101,11 @@ "ReactivateExistingEnvironment": "ms-resource:loc.messages.ReactivateExistingEnvironment", "ParameterRequired": "ms-resource:loc.messages.ParameterRequired", "PlatformNotRecognized": "ms-resource:loc.messages.PlatformNotRecognized", - "PrependPath": "ms-resource:loc.messages.PrependPath" + "PrependPath": "ms-resource:loc.messages.PrependPath", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" + }, + "_buildConfigMapping": { + "Default": "1.234.2", + "Node20-225": "1.234.3" } } \ No newline at end of file diff --git a/Tasks/DotNetCoreInstallerV1/Strings/resources.resjson/en-US/resources.resjson b/Tasks/DotNetCoreInstallerV1/Strings/resources.resjson/en-US/resources.resjson index 706457fda6d3..25a049565f25 100644 --- a/Tasks/DotNetCoreInstallerV1/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/DotNetCoreInstallerV1/Strings/resources.resjson/en-US/resources.resjson @@ -78,5 +78,6 @@ "loc.messages.FilesDataIsIncorrectInVersion": "In release %s for version %s, File data is incorrect (might have missing required fields, such as name, rid and url): %s", "loc.messages.VersionFilesDataIncorrect": "Version's files data is missing or has missing required fields.", "loc.messages.VersionInformationNotComplete": "Version: %s required information is not complete in releases.json file. Error: %s", - "loc.messages.FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s" + "loc.messages.FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s", + "loc.messages.DeprecatedTask": "The DotNetCoreInstaller@1 (.NET Core SDK/runtime installer) task has been deprecated since August 22, 2019 and will soon be retired. Use the UseDotNet@2 task instead." } \ No newline at end of file diff --git a/Tasks/DotNetCoreInstallerV1/dotnetcoreinstaller.ts b/Tasks/DotNetCoreInstallerV1/dotnetcoreinstaller.ts index b3989d54e119..8bee770098ed 100644 --- a/Tasks/DotNetCoreInstallerV1/dotnetcoreinstaller.ts +++ b/Tasks/DotNetCoreInstallerV1/dotnetcoreinstaller.ts @@ -41,6 +41,12 @@ async function run() { // Set DOTNET_ROOT for dotnet core Apphost to find runtime since it is installed to a non well-known location. tl.setVariable('DOTNET_ROOT', installationPath); + + let shouldFail = tl.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(tl.loc("DeprecatedTask")); + } } function addDotNetCoreToolPath() { diff --git a/Tasks/DotNetCoreInstallerV1/task.json b/Tasks/DotNetCoreInstallerV1/task.json index 8b32fe34fbd0..4d8f543063a3 100644 --- a/Tasks/DotNetCoreInstallerV1/task.json +++ b/Tasks/DotNetCoreInstallerV1/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "deprecated": true, @@ -153,6 +153,7 @@ "FilesDataIsIncorrectInVersion": "In release %s for version %s, File data is incorrect (might have missing required fields, such as name, rid and url): %s", "VersionFilesDataIncorrect": "Version's files data is missing or has missing required fields.", "VersionInformationNotComplete": "Version: %s required information is not complete in releases.json file. Error: %s", - "FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s" + "FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s", + "DeprecatedTask": "The DotNetCoreInstaller@1 (.NET Core SDK/runtime installer) task has been deprecated since August 22, 2019 and will soon be retired. Use the UseDotNet@2 task instead." } } \ No newline at end of file diff --git a/Tasks/DotNetCoreInstallerV1/task.loc.json b/Tasks/DotNetCoreInstallerV1/task.loc.json index 0099e3f4d228..14e7a158132b 100644 --- a/Tasks/DotNetCoreInstallerV1/task.loc.json +++ b/Tasks/DotNetCoreInstallerV1/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "deprecated": true, @@ -153,6 +153,7 @@ "FilesDataIsIncorrectInVersion": "ms-resource:loc.messages.FilesDataIsIncorrectInVersion", "VersionFilesDataIncorrect": "ms-resource:loc.messages.VersionFilesDataIncorrect", "VersionInformationNotComplete": "ms-resource:loc.messages.VersionInformationNotComplete", - "FailedWhileExtractingPacakge": "ms-resource:loc.messages.FailedWhileExtractingPacakge" + "FailedWhileExtractingPacakge": "ms-resource:loc.messages.FailedWhileExtractingPacakge", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" } } \ No newline at end of file diff --git a/_generated/AppCenterDistributeV1.versionmap.txt b/_generated/AppCenterDistributeV1.versionmap.txt index 03c75e2e696e..bf340ca139ef 100644 --- a/_generated/AppCenterDistributeV1.versionmap.txt +++ b/_generated/AppCenterDistributeV1.versionmap.txt @@ -1,2 +1,2 @@ -Default|1.234.0 -Node20_229_7|1.234.1 +Default|1.235.0 +Node20_229_7|1.235.1 diff --git a/_generated/AppCenterDistributeV1_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/AppCenterDistributeV1_Node20/Strings/resources.resjson/en-US/resources.resjson index b06ecc2d0491..c946550ca471 100644 --- a/_generated/AppCenterDistributeV1_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/AppCenterDistributeV1_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -38,5 +38,6 @@ "loc.messages.CannotFindAnyFile": "Cannot find any file based on %s.", "loc.messages.FoundMultipleFiles": "Found multiple files matching %s.", "loc.messages.FailedToCreateFile": "Failed to create %s with error: %s.", - "loc.messages.FailedToFindFile": "Failed to find %s at %s." + "loc.messages.FailedToFindFile": "Failed to find %s at %s.", + "loc.messages.DeprecatedTask": "The AppCenterDistribute@1 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." } \ No newline at end of file diff --git a/_generated/AppCenterDistributeV1_Node20/appcenterdistribute.ts b/_generated/AppCenterDistributeV1_Node20/appcenterdistribute.ts index d587a73552f2..6742d8e9a352 100644 --- a/_generated/AppCenterDistributeV1_Node20/appcenterdistribute.ts +++ b/_generated/AppCenterDistributeV1_Node20/appcenterdistribute.ts @@ -558,6 +558,12 @@ async function run() { await commitSymbols(effectiveApiServer, effectiveApiVersion, appSlug, symbolsUploadInfo.symbol_upload_id, apiToken, userAgent); } + let shouldFail = tl.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(tl.loc("DeprecatedTask")); + } + tl.setResult(tl.TaskResult.Succeeded, tl.loc("Succeeded")); } catch (err) { tl.setResult(tl.TaskResult.Failed, `${err}`); diff --git a/_generated/AppCenterDistributeV1_Node20/task.json b/_generated/AppCenterDistributeV1_Node20/task.json index 1bb5e4e33174..228767bdfa8d 100644 --- a/_generated/AppCenterDistributeV1_Node20/task.json +++ b/_generated/AppCenterDistributeV1_Node20/task.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "minimumAgentVersion": "2.144.0", @@ -205,10 +205,11 @@ "CannotFindAnyFile": "Cannot find any file based on %s.", "FoundMultipleFiles": "Found multiple files matching %s.", "FailedToCreateFile": "Failed to create %s with error: %s.", - "FailedToFindFile": "Failed to find %s at %s." + "FailedToFindFile": "Failed to find %s at %s.", + "DeprecatedTask": "The AppCenterDistribute@1 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20_229_7": "1.234.1" + "Default": "1.235.0", + "Node20_229_7": "1.235.1" } } \ No newline at end of file diff --git a/_generated/AppCenterDistributeV1_Node20/task.loc.json b/_generated/AppCenterDistributeV1_Node20/task.loc.json index 94a9a1315fb0..4b88e72ba053 100644 --- a/_generated/AppCenterDistributeV1_Node20/task.loc.json +++ b/_generated/AppCenterDistributeV1_Node20/task.loc.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "minimumAgentVersion": "2.144.0", @@ -205,10 +205,11 @@ "CannotFindAnyFile": "ms-resource:loc.messages.CannotFindAnyFile", "FoundMultipleFiles": "ms-resource:loc.messages.FoundMultipleFiles", "FailedToCreateFile": "ms-resource:loc.messages.FailedToCreateFile", - "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile" + "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20_229_7": "1.234.1" + "Default": "1.235.0", + "Node20_229_7": "1.235.1" } } \ No newline at end of file diff --git a/_generated/AppCenterDistributeV2.versionmap.txt b/_generated/AppCenterDistributeV2.versionmap.txt index cdfd3eac38e5..5bb6442d61ff 100644 --- a/_generated/AppCenterDistributeV2.versionmap.txt +++ b/_generated/AppCenterDistributeV2.versionmap.txt @@ -1,2 +1,2 @@ -Default|2.234.0 -Node20_229_7|2.234.1 +Default|2.235.0 +Node20_229_7|2.235.1 diff --git a/_generated/AppCenterDistributeV2_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/AppCenterDistributeV2_Node20/Strings/resources.resjson/en-US/resources.resjson index 9c3ec1f83437..0d154f652428 100644 --- a/_generated/AppCenterDistributeV2_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/AppCenterDistributeV2_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -39,5 +39,6 @@ "loc.messages.CannotFindAnyFile": "Cannot find any file based on %s.", "loc.messages.FoundMultipleFiles": "Found multiple files matching %s.", "loc.messages.FailedToCreateFile": "Failed to create %s with error: %s.", - "loc.messages.FailedToFindFile": "Failed to find %s at %s." + "loc.messages.FailedToFindFile": "Failed to find %s at %s.", + "loc.messages.DeprecatedTask": "The AppCenterDistribute@2 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." } \ No newline at end of file diff --git a/_generated/AppCenterDistributeV2_Node20/appcenterdistribute.ts b/_generated/AppCenterDistributeV2_Node20/appcenterdistribute.ts index 66415fd7328d..1857f439e3df 100644 --- a/_generated/AppCenterDistributeV2_Node20/appcenterdistribute.ts +++ b/_generated/AppCenterDistributeV2_Node20/appcenterdistribute.ts @@ -547,6 +547,12 @@ async function run() { await commitSymbols(effectiveApiServer, effectiveApiVersion, appSlug, symbolsUploadInfo.symbol_upload_id, apiToken, userAgent); } + let shouldFail = tl.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(tl.loc("DeprecatedTask")); + } + tl.setResult(tl.TaskResult.Succeeded, tl.loc("Succeeded")); } catch (err) { tl.setResult(tl.TaskResult.Failed, `${err}`); diff --git a/_generated/AppCenterDistributeV2_Node20/task.json b/_generated/AppCenterDistributeV2_Node20/task.json index 3d07a8f0e5c5..3848df20dfe5 100644 --- a/_generated/AppCenterDistributeV2_Node20/task.json +++ b/_generated/AppCenterDistributeV2_Node20/task.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "minimumAgentVersion": "2.144.0", @@ -207,10 +207,11 @@ "CannotFindAnyFile": "Cannot find any file based on %s.", "FoundMultipleFiles": "Found multiple files matching %s.", "FailedToCreateFile": "Failed to create %s with error: %s.", - "FailedToFindFile": "Failed to find %s at %s." + "FailedToFindFile": "Failed to find %s at %s.", + "DeprecatedTask": "The AppCenterDistribute@2 (App Center distribute) task has been deprecated since November 14, 2022 and will soon be retired. Use the AppCenterDistribute@3 task instead." }, "_buildConfigMapping": { - "Default": "2.234.0", - "Node20_229_7": "2.234.1" + "Default": "2.235.0", + "Node20_229_7": "2.235.1" } } \ No newline at end of file diff --git a/_generated/AppCenterDistributeV2_Node20/task.loc.json b/_generated/AppCenterDistributeV2_Node20/task.loc.json index d4f8bfdfdfcc..72de3386fd19 100644 --- a/_generated/AppCenterDistributeV2_Node20/task.loc.json +++ b/_generated/AppCenterDistributeV2_Node20/task.loc.json @@ -16,7 +16,7 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "minimumAgentVersion": "2.144.0", @@ -207,10 +207,11 @@ "CannotFindAnyFile": "ms-resource:loc.messages.CannotFindAnyFile", "FoundMultipleFiles": "ms-resource:loc.messages.FoundMultipleFiles", "FailedToCreateFile": "ms-resource:loc.messages.FailedToCreateFile", - "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile" + "FailedToFindFile": "ms-resource:loc.messages.FailedToFindFile", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" }, "_buildConfigMapping": { - "Default": "2.234.0", - "Node20_229_7": "2.234.1" + "Default": "2.235.0", + "Node20_229_7": "2.235.1" } } \ No newline at end of file diff --git a/_generated/CondaEnvironmentV1.versionmap.txt b/_generated/CondaEnvironmentV1.versionmap.txt index 6584f283a070..26181367ed1e 100644 --- a/_generated/CondaEnvironmentV1.versionmap.txt +++ b/_generated/CondaEnvironmentV1.versionmap.txt @@ -1,2 +1,2 @@ -Default|1.234.0 -Node20-225|1.234.1 +Default|1.235.0 +Node20-225|1.235.1 diff --git a/_generated/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson b/_generated/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson index 2352ea09a954..74ac7b229902 100644 --- a/_generated/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/CondaEnvironmentV1/Strings/resources.resjson/en-US/resources.resjson @@ -24,5 +24,6 @@ "loc.messages.ReactivateExistingEnvironment": "Found existing environment %s and the task's \"Clean environment\" parameter is not set. Reactivating ...", "loc.messages.ParameterRequired": "The `%s` parameter is required", "loc.messages.PlatformNotRecognized": "Platform not recognized", - "loc.messages.PrependPath": "Prepending PATH environment variable with directory: %s" + "loc.messages.PrependPath": "Prepending PATH environment variable with directory: %s", + "loc.messages.DeprecatedTask": "The CondaEnvironment@1 (Conda environment) task has been deprecated since February 13, 2019 and will soon be retired. Use the Conda CLI ('conda') directly from a bash/pwsh/script task." } \ No newline at end of file diff --git a/_generated/CondaEnvironmentV1/main.ts b/_generated/CondaEnvironmentV1/main.ts index 6bd77de58ee9..321d5f4a1173 100644 --- a/_generated/CondaEnvironmentV1/main.ts +++ b/_generated/CondaEnvironmentV1/main.ts @@ -16,6 +16,11 @@ import { condaEnvironment } from './conda'; cleanEnvironment: task.getBoolInput('cleanEnvironment') }, getPlatform()); + let shouldFail = task.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(task.loc("DeprecatedTask")); + } task.setResult(task.TaskResult.Succeeded, ""); } catch (e) { task.setResult(task.TaskResult.Failed, e.message); diff --git a/_generated/CondaEnvironmentV1/task.json b/_generated/CondaEnvironmentV1/task.json index 5e59c248789c..48948eb4c677 100644 --- a/_generated/CondaEnvironmentV1/task.json +++ b/_generated/CondaEnvironmentV1/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "deprecated": true, @@ -101,10 +101,11 @@ "ReactivateExistingEnvironment": "Found existing environment %s and the task's \"Clean environment\" parameter is not set. Reactivating ...", "ParameterRequired": "The `%s` parameter is required", "PlatformNotRecognized": "Platform not recognized", - "PrependPath": "Prepending PATH environment variable with directory: %s" + "PrependPath": "Prepending PATH environment variable with directory: %s", + "DeprecatedTask": "The CondaEnvironment@1 (Conda environment) task has been deprecated since February 13, 2019 and will soon be retired. Use the Conda CLI ('conda') directly from a bash/pwsh/script task." }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20-225": "1.234.1" + "Default": "1.235.0", + "Node20-225": "1.235.1" } } \ No newline at end of file diff --git a/_generated/CondaEnvironmentV1/task.loc.json b/_generated/CondaEnvironmentV1/task.loc.json index 2045eb23adf7..c7dfb5c58d09 100644 --- a/_generated/CondaEnvironmentV1/task.loc.json +++ b/_generated/CondaEnvironmentV1/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 0 }, "deprecated": true, @@ -101,10 +101,11 @@ "ReactivateExistingEnvironment": "ms-resource:loc.messages.ReactivateExistingEnvironment", "ParameterRequired": "ms-resource:loc.messages.ParameterRequired", "PlatformNotRecognized": "ms-resource:loc.messages.PlatformNotRecognized", - "PrependPath": "ms-resource:loc.messages.PrependPath" + "PrependPath": "ms-resource:loc.messages.PrependPath", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20-225": "1.234.1" + "Default": "1.235.0", + "Node20-225": "1.235.1" } } \ No newline at end of file diff --git a/_generated/CondaEnvironmentV1_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/CondaEnvironmentV1_Node20/Strings/resources.resjson/en-US/resources.resjson index 2352ea09a954..74ac7b229902 100644 --- a/_generated/CondaEnvironmentV1_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/CondaEnvironmentV1_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -24,5 +24,6 @@ "loc.messages.ReactivateExistingEnvironment": "Found existing environment %s and the task's \"Clean environment\" parameter is not set. Reactivating ...", "loc.messages.ParameterRequired": "The `%s` parameter is required", "loc.messages.PlatformNotRecognized": "Platform not recognized", - "loc.messages.PrependPath": "Prepending PATH environment variable with directory: %s" + "loc.messages.PrependPath": "Prepending PATH environment variable with directory: %s", + "loc.messages.DeprecatedTask": "The CondaEnvironment@1 (Conda environment) task has been deprecated since February 13, 2019 and will soon be retired. Use the Conda CLI ('conda') directly from a bash/pwsh/script task." } \ No newline at end of file diff --git a/_generated/CondaEnvironmentV1_Node20/main.ts b/_generated/CondaEnvironmentV1_Node20/main.ts index aef867b1603c..d84435b32f2d 100644 --- a/_generated/CondaEnvironmentV1_Node20/main.ts +++ b/_generated/CondaEnvironmentV1_Node20/main.ts @@ -17,6 +17,11 @@ import { condaEnvironment } from './conda'; cleanEnvironment: task.getBoolInput('cleanEnvironment') }, getPlatform()); + let shouldFail = task.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(task.loc("DeprecatedTask")); + } task.setResult(task.TaskResult.Succeeded, ""); } catch (e) { error = e; diff --git a/_generated/CondaEnvironmentV1_Node20/task.json b/_generated/CondaEnvironmentV1_Node20/task.json index fbe487714822..942a8652c533 100644 --- a/_generated/CondaEnvironmentV1_Node20/task.json +++ b/_generated/CondaEnvironmentV1_Node20/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "deprecated": true, @@ -105,10 +105,11 @@ "ReactivateExistingEnvironment": "Found existing environment %s and the task's \"Clean environment\" parameter is not set. Reactivating ...", "ParameterRequired": "The `%s` parameter is required", "PlatformNotRecognized": "Platform not recognized", - "PrependPath": "Prepending PATH environment variable with directory: %s" + "PrependPath": "Prepending PATH environment variable with directory: %s", + "DeprecatedTask": "The CondaEnvironment@1 (Conda environment) task has been deprecated since February 13, 2019 and will soon be retired. Use the Conda CLI ('conda') directly from a bash/pwsh/script task." }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20-225": "1.234.1" + "Default": "1.235.0", + "Node20-225": "1.235.1" } } \ No newline at end of file diff --git a/_generated/CondaEnvironmentV1_Node20/task.loc.json b/_generated/CondaEnvironmentV1_Node20/task.loc.json index 7d361eaa2842..3dea60551c5f 100644 --- a/_generated/CondaEnvironmentV1_Node20/task.loc.json +++ b/_generated/CondaEnvironmentV1_Node20/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "deprecated": true, @@ -105,10 +105,11 @@ "ReactivateExistingEnvironment": "ms-resource:loc.messages.ReactivateExistingEnvironment", "ParameterRequired": "ms-resource:loc.messages.ParameterRequired", "PlatformNotRecognized": "ms-resource:loc.messages.PlatformNotRecognized", - "PrependPath": "ms-resource:loc.messages.PrependPath" + "PrependPath": "ms-resource:loc.messages.PrependPath", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20-225": "1.234.1" + "Default": "1.235.0", + "Node20-225": "1.235.1" } } \ No newline at end of file diff --git a/_generated/DotNetCoreInstallerV1.versionmap.txt b/_generated/DotNetCoreInstallerV1.versionmap.txt index e3500890f3b7..6f666948200c 100644 --- a/_generated/DotNetCoreInstallerV1.versionmap.txt +++ b/_generated/DotNetCoreInstallerV1.versionmap.txt @@ -1,2 +1,2 @@ -Default|1.234.0 -Node20_229_3|1.234.1 +Default|1.235.0 +Node20_229_3|1.235.1 diff --git a/_generated/DotNetCoreInstallerV1_Node20/Strings/resources.resjson/en-US/resources.resjson b/_generated/DotNetCoreInstallerV1_Node20/Strings/resources.resjson/en-US/resources.resjson index 706457fda6d3..25a049565f25 100644 --- a/_generated/DotNetCoreInstallerV1_Node20/Strings/resources.resjson/en-US/resources.resjson +++ b/_generated/DotNetCoreInstallerV1_Node20/Strings/resources.resjson/en-US/resources.resjson @@ -78,5 +78,6 @@ "loc.messages.FilesDataIsIncorrectInVersion": "In release %s for version %s, File data is incorrect (might have missing required fields, such as name, rid and url): %s", "loc.messages.VersionFilesDataIncorrect": "Version's files data is missing or has missing required fields.", "loc.messages.VersionInformationNotComplete": "Version: %s required information is not complete in releases.json file. Error: %s", - "loc.messages.FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s" + "loc.messages.FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s", + "loc.messages.DeprecatedTask": "The DotNetCoreInstaller@1 (.NET Core SDK/runtime installer) task has been deprecated since August 22, 2019 and will soon be retired. Use the UseDotNet@2 task instead." } \ No newline at end of file diff --git a/_generated/DotNetCoreInstallerV1_Node20/dotnetcoreinstaller.ts b/_generated/DotNetCoreInstallerV1_Node20/dotnetcoreinstaller.ts index b3989d54e119..8bee770098ed 100644 --- a/_generated/DotNetCoreInstallerV1_Node20/dotnetcoreinstaller.ts +++ b/_generated/DotNetCoreInstallerV1_Node20/dotnetcoreinstaller.ts @@ -41,6 +41,12 @@ async function run() { // Set DOTNET_ROOT for dotnet core Apphost to find runtime since it is installed to a non well-known location. tl.setVariable('DOTNET_ROOT', installationPath); + + let shouldFail = tl.getVariable('FAIL_DEPRECATED_BUILD_TASK'); + + if (shouldFail != null && shouldFail.toLowerCase() === 'true') { + throw new Error(tl.loc("DeprecatedTask")); + } } function addDotNetCoreToolPath() { diff --git a/_generated/DotNetCoreInstallerV1_Node20/task.json b/_generated/DotNetCoreInstallerV1_Node20/task.json index 59313f846bb5..333102c00f70 100644 --- a/_generated/DotNetCoreInstallerV1_Node20/task.json +++ b/_generated/DotNetCoreInstallerV1_Node20/task.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "deprecated": true, @@ -157,10 +157,11 @@ "FilesDataIsIncorrectInVersion": "In release %s for version %s, File data is incorrect (might have missing required fields, such as name, rid and url): %s", "VersionFilesDataIncorrect": "Version's files data is missing or has missing required fields.", "VersionInformationNotComplete": "Version: %s required information is not complete in releases.json file. Error: %s", - "FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s" + "FailedWhileExtractingPacakge": "Failed while extracting downloaded package with error: %s", + "DeprecatedTask": "The DotNetCoreInstaller@1 (.NET Core SDK/runtime installer) task has been deprecated since August 22, 2019 and will soon be retired. Use the UseDotNet@2 task instead." }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20_229_3": "1.234.1" + "Default": "1.235.0", + "Node20_229_3": "1.235.1" } } \ No newline at end of file diff --git a/_generated/DotNetCoreInstallerV1_Node20/task.loc.json b/_generated/DotNetCoreInstallerV1_Node20/task.loc.json index 7fd2fffa6a87..b370b92b7d74 100644 --- a/_generated/DotNetCoreInstallerV1_Node20/task.loc.json +++ b/_generated/DotNetCoreInstallerV1_Node20/task.loc.json @@ -13,7 +13,7 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 234, + "Minor": 235, "Patch": 1 }, "deprecated": true, @@ -157,10 +157,11 @@ "FilesDataIsIncorrectInVersion": "ms-resource:loc.messages.FilesDataIsIncorrectInVersion", "VersionFilesDataIncorrect": "ms-resource:loc.messages.VersionFilesDataIncorrect", "VersionInformationNotComplete": "ms-resource:loc.messages.VersionInformationNotComplete", - "FailedWhileExtractingPacakge": "ms-resource:loc.messages.FailedWhileExtractingPacakge" + "FailedWhileExtractingPacakge": "ms-resource:loc.messages.FailedWhileExtractingPacakge", + "DeprecatedTask": "ms-resource:loc.messages.DeprecatedTask" }, "_buildConfigMapping": { - "Default": "1.234.0", - "Node20_229_3": "1.234.1" + "Default": "1.235.0", + "Node20_229_3": "1.235.1" } } \ No newline at end of file