Skip to content

Commit df673c2

Browse files
committed
User Story 37654: Create Extensions base package
- Fixed incorrect arguments to dotnet CLI commands.
1 parent ea1f3a3 commit df673c2

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

eng/pipelines/stages/ci-build-extensions-package-stage.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,16 @@ stages:
8181
- name: project
8282
value: src/Microsoft.Data.SqlClient/extensions/Extensions/Microsoft.Data.SqlClient.Extensions.slnx
8383

84-
# Common dotnet CLI arguments to use for all commands.
84+
# dotnet CLI arguments common to all commands.
8585
- name: commonArguments
86-
value:
86+
value: >
8787
--verbosity ${{parameters.verbosity}}
88-
--artifacts-path '$(dotnetArtifactsDir)'
88+
--artifacts-path $(dotnetArtifactsDir)
89+
90+
# dotnet CLI arguments for build/test/pack commands
91+
- name: buildArguments
92+
value: >
93+
$(commonArguments)
8994
--configuration ${{parameters.buildConfiguration}}
9095
-p:BuildNumber=$(Build.BuildNumber)
9196
-p:ExtensionsPackageVersion=${{parameters.packageVersion}}
@@ -118,31 +123,31 @@ stages:
118123
command: custom
119124
custom: build
120125
projects: $(project)
121-
arguments: $(commonArguments) --no-restore
126+
arguments: $(buildArguments) --no-restore
122127

123128
- task: DotNetCoreCLI@2
124129
displayName: Test .NET 9.0
125130
inputs:
126131
command: custom
127132
custom: test
128133
projects: $(project)
129-
arguments: ($commonArguments) --no-build -f net9.0
134+
arguments: $(buildArguments) --no-build -f net9.0
130135

131136
- task: DotNetCoreCLI@2
132137
displayName: Test .NET 8.0
133138
inputs:
134139
command: custom
135140
custom: test
136141
projects: $(project)
137-
arguments: ($commonArguments) --no-build -f net8.0
142+
arguments: $(buildArguments) --no-build -f net8.0
138143

139144
- task: DotNetCoreCLI@2
140145
displayName: Create NuGet Package
141146
inputs:
142147
command: custom
143148
custom: pack
144149
projects: $(project)
145-
arguments: $(commonArguments) --no-build -o '$(dotnetPackagesDir)'
150+
arguments: $(buildArguments) --no-build -o $(dotnetPackagesDir)
146151

147152
- task: PublishPipelineArtifact@1
148153
displayName: Publish Pipeline Artifacts

0 commit comments

Comments
 (0)