Skip to content

Commit 8fc7154

Browse files
authored
Official Build Cleanup 2 (#4155)
* PR comments and uh what * Rely on AssemblyBuildNumber for non-MDS projects, too.
1 parent d197d6a commit 8fc7154

13 files changed

Lines changed: 20 additions & 33 deletions

File tree

eng/pipelines/onebranch/jobs/validate-signed-package-job.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ parameters:
3636
- name: isOfficial
3737
type: boolean
3838

39-
# True if this build is a preview.
40-
- name: isPreview
41-
type: boolean
42-
4339
jobs:
4440
- job: validate_nuget_package
4541
displayName: "Validate NuGet package"
@@ -58,7 +54,7 @@ jobs:
5854
# Path to the SqlClient NuGet package after installation. This path will only exist once the package
5955
# been installed.
6056
- name: nugetPackageInstallPath
61-
value: '$(Pipeline.Workspace)\nugetPackageInstalls\Microsoft.Data.SqlClient\${{ parameters.expectedPackageVersion }}'
57+
value: '$(Pipeline.Workspace)\nugetPackageInstalls\Microsoft.Data.SqlClient.${{ parameters.expectedPackageVersion }}'
6258

6359
# Root folder where NuGet package will be installed locally
6460
- name: nugetPackageInstallRoot
@@ -119,8 +115,8 @@ jobs:
119115
-SkipDependencies
120116
121117
echo "> 2. Listing contents of installed Microsoft.Data.SqlClient NuGet package:"
122-
Write-Host $artifactPath
123-
Get-ChildItem $artifactPath
118+
Write-Host $nugetPackageInstallRoot
119+
Get-ChildItem $nugetPackageInstallRoot
124120
displayName: "Install NuGet Package"
125121
126122
# Find all DLL files in the installed NuGet package, verify each is signed with a strong name

eng/pipelines/onebranch/sqlclient-non-official.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ extends:
173173
stages:
174174
- template: /eng/pipelines/onebranch/stages/build-stages.yml@self
175175
parameters:
176-
isPreview: ${{ parameters.isPreview }}
177176
isOfficial: false # This is a non-official pipeline.
178177
publishSymbols: ${{ parameters.publishSymbols }}
179178
buildSqlServerServer: ${{ parameters.buildSqlServerServer }}

eng/pipelines/onebranch/sqlclient-official.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ extends:
201201
stages:
202202
- template: /eng/pipelines/onebranch/stages/build-stages.yml@self
203203
parameters:
204-
isPreview: ${{ parameters.isPreview }}
205204
isOfficial: true # This is an official pipeline.
206205
publishSymbols: ${{ parameters.publishSymbols }}
207206
buildSqlServerServer: ${{ parameters.buildSqlServerServer }}

eng/pipelines/onebranch/stages/build-stages.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ parameters:
2222
- name: isOfficial
2323
type: boolean
2424

25-
# True if this is a preview build, which uses the preview version numbers from
26-
# common-variables.yml.
27-
- name: isPreview
28-
type: boolean
29-
3025
# True to publish symbols to public and private servers.
3126
- name: publishSymbols
3227
type: boolean
@@ -358,5 +353,4 @@ stages:
358353
artifactName: '${{ parameters.sqlClientArtifactsName }}'
359354
expectedFileVersion: '${{ parameters.sqlClientFileVersion }}'
360355
expectedPackageVersion: '${{ parameters.sqlClientPackageVersion }}'
361-
isPreview: ${{ parameters.isPreview }}
362356
isOfficial: ${{ parameters.isOfficial }}

eng/pipelines/onebranch/steps/roslyn-analyzers-sqlclient-step.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ steps:
3232
$(REPO_ROOT)/build2.proj
3333
-t:BuildMds
3434
-p:Configuration=Release
35-
-p:PackageVersionAbstractions="${{ parameters.abstractionsPackageVersion }}"
36-
-p:PackageVersionLogging="${{ parameters.loggingPackageVersion }}"
37-
-p:PackageVersionMds="${{ parameters.sqlClientPackageVersion }}"
35+
-p:PackageVersionAbstractions=${{ parameters.abstractionsPackageVersion }}
36+
-p:PackageVersionLogging=${{ parameters.loggingPackageVersion }}
37+
-p:PackageVersionMds=${{ parameters.sqlClientPackageVersion }}
3838
-p:ReferenceType=Package
3939
msBuildVersion: 17.0
4040
setupCommandLinePicker: vs2022

eng/pipelines/onebranch/variables/onebranch-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# See the LICENSE file in the project root for more information. #
55
#################################################################################
66

7-
# This file is only included in SqlClient OneBranch Official pipelines.
7+
# This file is only included in SqlClient OneBranch official/non-official pipelines.
88

99
variables:
1010
# Libraries ==============================================================

eng/pipelines/onebranch/variables/package-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ variables:
4141
# $(Build.BuildNumber) has the format XXX.YY. Additionally, each version part must be a positive
4242
# 16-bit integer less than 65535. Simply concatenating both parts of $(Build.BuildNumber) could
4343
# produce values larger than 65534, so we must omit the second part entirely. Unfortunately, this
44-
# may result in multiple subsequent pipline builds using the same C# assembly versions. The
44+
# may result in multiple subsequent pipeline builds using the same C# assembly versions. The
4545
# package versions will not be affected and will show the complete $(Build.BuildNumber) values.
4646
- name: _assemblyBuildNumber
4747
value: $[ split(variables['Build.BuildNumber'], '.')[0] ]

src/Microsoft.Data.SqlClient.Extensions/Abstractions/src/AbstractionsVersions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- Used as the base value of the assembly attribute
2525
'AssemblyInformationalVersion' generated by MSBuild.
2626
- If not specified, defaults to:
27-
$(DefaultMajorVersion).0.0.$(BuildNumber)-dev.
27+
$(DefaultMajorVersion).0.0.$(AssemblyBuildNumber)-dev.
2828
2929
AbstractionsAssemblyFileVersion:
3030
- Used as the value of the assembly attribute 'AssemblyFileVersion'
@@ -33,7 +33,7 @@
3333
- If $(AbstractionsPackageVersion) is specified, use the numeric
3434
parts of its value, for example 1.0.0.345.
3535
- Otherwise, defaults to:
36-
$(DefaultMajorVersion).0.0.$(BuildNumber).
36+
$(DefaultMajorVersion).0.0.$(AssemblyBuildNumber).
3737
3838
We use private properties to hold the computed values, and then always
3939
assign those to the public properties. After importing this file, the
@@ -45,7 +45,7 @@
4545

4646
<!-- Determine the package version. -->
4747
<_OurPackageVersion Condition="'$(AbstractionsPackageVersion)' != ''">$(AbstractionsPackageVersion)</_OurPackageVersion>
48-
<_OurPackageVersion Condition="'$(AbstractionsPackageVersion)' == ''">$(AbstractionsDefaultMajorVersion).0.0.$(BuildNumber)-dev</_OurPackageVersion>
48+
<_OurPackageVersion Condition="'$(AbstractionsPackageVersion)' == ''">$(AbstractionsDefaultMajorVersion).0.0.$(AssemblyBuildNumber)-dev</_OurPackageVersion>
4949

5050
<!--Determine the assembly file version. -->
5151
<!-- If AbstractionsAssemblyFileVersion is set, use its value as-is. -->

src/Microsoft.Data.SqlClient.Extensions/Azure/src/AzureVersions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- Used as the base value of the assembly attribute
2424
'AssemblyInformationalVersion' generated by MSBuild.
2525
- If not specified, defaults to:
26-
$(DefaultMajorVersion).0.0.$(BuildNumber)-dev.
26+
$(DefaultMajorVersion).0.0.$(AssemblyBuildNumber)-dev.
2727
2828
AzureAssemblyFileVersion:
2929
- Used as the value of the assembly attribute 'AssemblyFileVersion'
@@ -44,7 +44,7 @@
4444

4545
<!-- Determine the package version. -->
4646
<_OurPackageVersion Condition="'$(AzurePackageVersion)' != ''">$(AzurePackageVersion)</_OurPackageVersion>
47-
<_OurPackageVersion Condition="'$(AzurePackageVersion)' == ''">$(AzureDefaultMajorVersion).0.0.$(BuildNumber)-dev</_OurPackageVersion>
47+
<_OurPackageVersion Condition="'$(AzurePackageVersion)' == ''">$(AzureDefaultMajorVersion).0.0.$(AssemblyBuildNumber)-dev</_OurPackageVersion>
4848

4949
<!--Determine the assembly file version. -->
5050
<!-- If AzureAssemblyFileVersion is set, use its value as-is. -->

src/Microsoft.Data.SqlClient.Internal/Logging/src/LoggingVersions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- Used as the base value of the assembly attribute
2525
'AssemblyInformationalVersion' generated by MSBuild.
2626
- If not specified, defaults to:
27-
$(DefaultMajorVersion).0.0.$(BuildNumber)-dev.
27+
$(DefaultMajorVersion).0.0.$(AssemblyBuildNumber)-dev.
2828
2929
LoggingAssemblyFileVersion:
3030
- Used as the value of the assembly attribute 'AssemblyFileVersion'
@@ -33,7 +33,7 @@
3333
- If $(LoggingPackageVersion) is specified, use the numeric
3434
parts of its value, for example 1.0.0.345.
3535
- Otherwise, defaults to:
36-
$(DefaultMajorVersion).0.0.$(BuildNumber).
36+
$(DefaultMajorVersion).0.0.$(AssemblyBuildNumber).
3737
3838
We use private properties to hold the computed values, and then always
3939
assign those to the public properties. After importing this file, the
@@ -45,7 +45,7 @@
4545

4646
<!-- Determine the package version. -->
4747
<_OurPackageVersion Condition="'$(LoggingPackageVersion)' != ''">$(LoggingPackageVersion)</_OurPackageVersion>
48-
<_OurPackageVersion Condition="'$(LoggingPackageVersion)' == ''">$(LoggingDefaultMajorVersion).0.0.$(BuildNumber)-dev</_OurPackageVersion>
48+
<_OurPackageVersion Condition="'$(LoggingPackageVersion)' == ''">$(LoggingDefaultMajorVersion).0.0.$(AssemblyBuildNumber)-dev</_OurPackageVersion>
4949

5050
<!--Determine the assembly file version. -->
5151
<!-- If LoggingAssemblyFileVersion is set, use its value as-is. -->

0 commit comments

Comments
 (0)