|
30 | 30 | RootFolder: '.' |
31 | 31 | BuildSHA: $(Build.SourceVersion) |
32 | 32 | RepoId: 'Azure/azure-sdk-for-net' |
33 | | - - task: UseDotNet@2 |
34 | | - displayName: "Use .NET Core sdk $(DotNetCoreSDKVersion)" |
35 | | - inputs: |
36 | | - version: "$(DotNetCoreSDKVersion)" |
37 | 33 | - script: >- |
38 | 34 | dotnet pack eng/service.proj -o $(Build.ArtifactStagingDirectory) -warnaserror /p:ServiceDirectory=${{parameters.ServiceToBuild}} |
39 | 35 | /p:PublicSign=false $(VersioningProperties) /p:Configuration=$(BuildConfiguration) /p:CommitSHA=$(Build.SourceVersion) |
@@ -74,22 +70,11 @@ jobs: |
74 | 70 | pip install doc-warden==$(DocWardenVersion) |
75 | 71 | ward scan -d $(Build.SourcesDirectory) -c $(Build.SourcesDirectory)/eng/.docsettings.yml |
76 | 72 | displayName: "Verify Readmes" |
77 | | - - task: UseDotNet@2 |
78 | | - displayName: "Use .NET Core sdk $(DotNetCoreSDKVersion)" |
79 | | - inputs: |
80 | | - version: "$(DotNetCoreSDKVersion)" |
81 | 73 | - task: UseDotNet@2 |
82 | 74 | displayName: "Use .NET Core runtime $(DotNetCoreRuntimeVersion)" |
83 | 75 | inputs: |
84 | 76 | packageType: runtime |
85 | 77 | version: "$(DotNetCoreRuntimeVersion)" |
86 | | - - task: DownloadPipelineArtifact@2 |
87 | | - displayName: "Download Build Artifacts" |
88 | | - condition: succeededOrFailed() |
89 | | - inputs: |
90 | | - artifact: packages |
91 | | - path: $(Pipeline.Workspace)/packages |
92 | | - patterns: "*.nupkg" |
93 | 78 | - template: /eng/common/pipelines/templates/steps/verify-path-length.yml |
94 | 79 | parameters: |
95 | 80 | SourceDirectory: $(Build.SourcesDirectory) |
@@ -149,16 +134,11 @@ jobs: |
149 | 134 | vmImage: "$(OSVmImage)" |
150 | 135 | steps: |
151 | 136 | - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml |
152 | | - - task: DotNetCoreInstaller@2 |
| 137 | + - task: UseDotNet@2 |
153 | 138 | displayName: "Use .NET Core runtime $(DotNetCoreRuntimeVersion)" |
154 | 139 | inputs: |
155 | 140 | packageType: runtime |
156 | 141 | version: "$(DotNetCoreRuntimeVersion)" |
157 | | - - task: DotNetCoreInstaller@2 |
158 | | - displayName: "Use .NET Core sdk $(DotNetCoreSDKVersion)" |
159 | | - inputs: |
160 | | - packageType: sdk |
161 | | - version: "$(DotNetCoreSDKVersion)" |
162 | 142 | - script: >- |
163 | 143 | dotnet test eng/service.proj --filter TestCategory!=Live --framework $(TestTargetFramework) --logger "trx;LogFileName=$(TestTargetFramework).trx" --logger:"console;verbosity=normal" |
164 | 144 | /p:ServiceDirectory=${{parameters.ServiceToBuild}} /p:IncludeSrc=false /p:IncludeSamples=false /p:Configuration=$(BuildConfiguration) $(ConvertToProjectReferenceOption) /p:CollectCoverage=$(CollectCoverage) |
|
0 commit comments