From d8e9703355a46a98846b97ccf9a7fecaf0813d99 Mon Sep 17 00:00:00 2001 From: Maddy <12754347+MaddyDev@users.noreply.github.com> Date: Mon, 25 Sep 2023 19:55:46 -0700 Subject: [PATCH] Align the worker package to Sql package (#925) * remove the range & align the worker-sql packages * use binariesVersion * rename SupportedVersion --- .../Microsoft.Azure.Functions.Worker.Extensions.Sql.csproj | 4 ++-- builds/azure-pipelines/build-pr.yml | 2 +- builds/azure-pipelines/build-release.yml | 6 +++--- builds/azure-pipelines/template-steps-build-test.yml | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Worker.Extensions.Sql/src/Microsoft.Azure.Functions.Worker.Extensions.Sql.csproj b/Worker.Extensions.Sql/src/Microsoft.Azure.Functions.Worker.Extensions.Sql.csproj index 180eceb5d..ad27a8c15 100644 --- a/Worker.Extensions.Sql/src/Microsoft.Azure.Functions.Worker.Extensions.Sql.csproj +++ b/Worker.Extensions.Sql/src/Microsoft.Azure.Functions.Worker.Extensions.Sql.csproj @@ -7,7 +7,7 @@ SQL Binding Worker 99.99.99 - 99.99.99 + 99.99.99 Microsoft.Azure.Functions.Worker.Extensions.Sql Microsoft Azure WebJobs AzureFunctions Isolated DotnetIsolated SQL AzureSQL Worker true @@ -34,7 +34,7 @@ <_Parameter1>Microsoft.Azure.WebJobs.Extensions.Sql - <_Parameter2>$(SupportedVersion) + <_Parameter2>$(OOPWorkerSupportedExtensionVersion) \ No newline at end of file diff --git a/builds/azure-pipelines/build-pr.yml b/builds/azure-pipelines/build-pr.yml index d32110097..07018a885 100644 --- a/builds/azure-pipelines/build-pr.yml +++ b/builds/azure-pipelines/build-pr.yml @@ -46,4 +46,4 @@ stages: configuration: '$(configuration)' nugetVersion: '99.99.99-test' binariesVersion: '99.99.99' - supportedVersion: '99.99.99' \ No newline at end of file + oopWorkerSupportedExtensionVersion: '99.99.99' \ No newline at end of file diff --git a/builds/azure-pipelines/build-release.yml b/builds/azure-pipelines/build-release.yml index a6ad2d9b2..e5c35c6d7 100644 --- a/builds/azure-pipelines/build-release.yml +++ b/builds/azure-pipelines/build-release.yml @@ -28,7 +28,7 @@ variables: versionPatch: $[counter(variables['versionMajorMinor'], 0)] # This will reset when we bump minor version binariesVersion: '$(versionMajor).$(versionMinor).$(versionPatch)' nugetVersion: $[replace(replace('True', eq('${{ parameters.ReleaseType }}', 'full'), '$(binariesVersion)'),'True','$(binariesVersion)-preview')] # This will set the preview tag to the version based on the ReleaseType parameter. - supportedVersion: $[replace(replace('True', eq('${{ parameters.ReleaseType }}', 'full'), '$(versionMajor).*'),'True','$(versionMajor).*-*')] # This will set the expression to pull the preview vs full version based on the ReleaseType parameter. + oopWorkerSupportedExtensionVersion: $[replace(replace('True', eq('${{ parameters.ReleaseType }}', 'full'), '$(binariesVersion)'),'True','$(binariesVersion)-preview')] # This will set the expression to pull the preview vs full version based on the ReleaseType parameter. LGTM.UploadSnapshot: true Semmle.SkipAnalysis: true @@ -67,7 +67,7 @@ stages: configuration: '$(configuration)' nugetVersion: '$(nugetVersion)' binariesVersion: '$(binariesVersion)' - supportedVersion: '$(supportedVersion)' + oopWorkerSupportedExtensionVersion: '$(oopWorkerSupportedExtensionVersion)' - job: BuildTestPublishLinux displayName: 'Build, Test and Publish on linux' @@ -87,7 +87,7 @@ stages: configuration: '$(configuration)' nugetVersion: '$(nugetVersion)' binariesVersion: '$(binariesVersion)' - supportedVersion: '$(supportedVersion)' + oopWorkerSupportedExtensionVersion: '$(oopWorkerSupportedExtensionVersion)' testServer: '' - template: 'template-steps-publish.yml' diff --git a/builds/azure-pipelines/template-steps-build-test.yml b/builds/azure-pipelines/template-steps-build-test.yml index 4c504e3dd..47de134a8 100644 --- a/builds/azure-pipelines/template-steps-build-test.yml +++ b/builds/azure-pipelines/template-steps-build-test.yml @@ -4,7 +4,7 @@ parameters: nugetVersion: '' binariesVersion: '' testServer: '' - supportedVersion: '' + oopWorkerSupportedExtensionVersion: '' steps: - task: UseDotNet@2 @@ -92,7 +92,7 @@ steps: inputs: command: build projects: ${{ parameters.solution }} - arguments: --configuration ${{ parameters.configuration }} -p:Version=${{ parameters.binariesVersion }} -p:SupportedVersion=${{ parameters.binariesVersion }} + arguments: --configuration ${{ parameters.configuration }} -p:Version=${{ parameters.binariesVersion }} -p:OOPWorkerSupportedExtensionVersion=${{ parameters.binariesVersion }} - task: CopyFiles@2 displayName: 'Copy Sql extension dll to Azure Functions extension bundle' @@ -224,7 +224,7 @@ steps: inputs: command: build projects: '${{ parameters.solution }}' - arguments: '--configuration ${{ parameters.configuration }} -p:GeneratePackageOnBuild=false -p:Version=${{ parameters.binariesVersion }} -p:SupportedVersion=${{ parameters.supportedVersion }}' + arguments: '--configuration ${{ parameters.configuration }} -p:GeneratePackageOnBuild=false -p:Version=${{ parameters.binariesVersion }} -p:OOPWorkerSupportedExtensionVersion=${{ parameters.oopWorkerSupportedExtensionVersion }}' # 5.0 isn't supported on Mac yet - task: UseDotNet@2