Skip to content

Commit 4907211

Browse files
authored
Update azure-pipelines.yml
Currently unable to build. Using the latest images for the pipeline.
1 parent aa0b12b commit 4907211

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
strategy:
22
matrix:
33
linux:
4-
imageName: 'ubuntu-18.04'
4+
imageName: 'ubuntu-latest'
55
windows:
6-
imageName: 'windows-2019'
6+
imageName: 'windows-latest'
77

88
pool:
99
vmImage: $(imageName)
1010

1111
variables:
1212
buildConfiguration: 'Release'
13-
version: 3.0
13+
version: 3.1
1414

1515
steps:
1616
- task: UseDotNet@2
@@ -35,7 +35,7 @@ steps:
3535
projects: '**/*.sln'
3636

3737
- script: 'echo -e "$(Build.BuildNumber)\n$(Build.BuildId)" > .buildinfo.json'
38-
condition: and(always(), eq(variables['imageName'], 'ubuntu-18.04'))
38+
condition: and(always(), eq(variables['imageName'], 'ubuntu-latest'))
3939
displayName: "Emit build number"
4040
workingDirectory: '$(Build.SourcesDirectory)/source/DasBlog.Web.UI'
4141
failOnStderr: true
@@ -49,11 +49,11 @@ steps:
4949

5050
- script: dotnet test source/DasBlog.Tests/UnitTests/ --logger trx;LogfileName=test_results.xml --results-directory $(System.DefaultWorkingDirectory)/test_results --filter Category=UnitTest
5151
displayName: Run Unit Tests on Windows
52-
condition: and(succeeded(), eq(variables['imageName'], 'windows-2019'))
52+
condition: and(succeeded(), eq(variables['imageName'], 'windows-latest'))
5353

5454
- task: PublishTestResults@2
5555
displayName: Publish Test Results
56-
condition: and(always(), eq(variables['imageName'], 'windows-2019'))
56+
condition: and(always(), eq(variables['imageName'], 'windows-latest'))
5757
inputs:
5858
testRunner: VSTest
5959
testResultsFiles: '**/*.xml'
@@ -76,7 +76,7 @@ steps:
7676
replaceExistingArchive: true
7777

7878
- task: PublishPipelineArtifact@1
79-
condition: and(succeeded(), eq(variables['imageName'], 'windows-2019'))
79+
condition: and(succeeded(), eq(variables['imageName'], 'windows-latest'))
8080
inputs:
8181
targetPath: '$(Build.ArtifactStagingDirectory)/$(System.TeamProject)_$(Build.BuildNumber).zip'
8282
artifactName: $(System.TeamProject)_$(Build.BuildNumber)

0 commit comments

Comments
 (0)