1
1
parameters :
2
2
sign : false
3
- publish : true
4
3
nuspecProperties : ' '
5
4
6
5
steps :
@@ -178,41 +177,14 @@ steps:
178
177
**\Microsoft.Artifacts.Authentication.pdb
179
178
TargetFolder : ' $(Build.ArtifactStagingDirectory)\symbols'
180
179
181
- - ${{ if eq(parameters.sign, 'true') }} :
182
- - task : PublishSymbols@2
183
- displayName : Publish symbols
184
- inputs :
185
- SymbolsFolder : ' $(Build.ArtifactStagingDirectory)\symbols'
186
- SearchPattern : ' **\*.pdb'
187
- IndexSources : false
188
- PublishSymbols : true
189
- SymbolServerType : TeamServices
190
- SymbolsProduct : ' artifacts-credprovider'
191
- env :
192
- ARTIFACTSERVICES_SYMBOL_ACCOUNTNAME : ' microsoft'
193
- ARTIFACTSERVICES_SYMBOL_USEAAD : ' false'
194
-
195
- - ${{ if eq(parameters.publish, 'true') }} :
196
- - task : PublishPipelineArtifact@1
197
- displayName : ' Upload symbols'
198
- inputs :
199
- artifact : " Symbols"
200
- targetPath : ' $(Build.ArtifactStagingDirectory)\symbols'
201
-
202
180
- powershell : ' Write-Output ("##vso[task.setvariable variable=SignType;]")'
203
181
displayName : Clear SignType
204
182
205
183
- script : dotnet pack MicrosoftCredentialProvider.sln -c $(BuildConfiguration) -o $(Build.ArtifactStagingDirectory)\$(BuildConfiguration) -p:${{ parameters.nuspecProperties }}
206
184
displayName : dotnet pack
207
185
208
- - ${{ if eq(parameters.publish, 'true') }} :
209
- - script : dotnet nuget push $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\*.nupkg --source artifacts-credprovider --api-key az --skip-duplicate
210
- displayName : dotnet push
211
- condition : eq(variables['PushNupkg'], 'true')
212
-
213
- - task : PublishPipelineArtifact@1
214
- displayName : Publish Artifact $(Build.BuildNumber)
215
- inputs :
216
- artifact : ' $(Build.BuildNumber)'
217
- targetPath : ' $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\'
218
-
186
+ - task : PublishPipelineArtifact@1
187
+ displayName : Publish Artifact $(Build.BuildNumber)
188
+ inputs :
189
+ artifact : ' $(Build.BuildNumber)'
190
+ targetPath : ' $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\'
0 commit comments