Skip to content

Commit e93cbf3

Browse files
committed
Update artifact build tasks.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent c2240ff commit e93cbf3

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

.ci/build-steps.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ steps:
3030
arguments: '-c Release -f net9.0 --no-build tests/MySqlConnector.Tests/MySqlConnector.Tests.csproj'
3131
publishWebProjects: false
3232
zipAfterPublish: false
33-
- task: PublishPipelineArtifact@0
33+
- task: PublishPipelineArtifact@1
3434
inputs:
35-
artifactName: 'MySqlConnector.Tests-9.0-$(Agent.OS)'
35+
artifact: 'MySqlConnector.Tests-9.0-$(Agent.OS)'
3636
targetPath: 'artifacts/publish/MySqlConnector.Tests/release_net9.0'
37+
publishLocation: 'pipeline'
3738

3839
- task: DotNetCoreCLI@2
3940
displayName: 'Publish Conformance.Tests'
@@ -42,10 +43,11 @@ steps:
4243
arguments: '-c Release -f net9.0 --no-build tests/Conformance.Tests/Conformance.Tests.csproj'
4344
publishWebProjects: false
4445
zipAfterPublish: false
45-
- task: PublishPipelineArtifact@0
46+
- task: PublishPipelineArtifact@1
4647
inputs:
47-
artifactName: 'Conformance.Tests-9.0-$(Agent.OS)'
48+
artifact: 'Conformance.Tests-9.0-$(Agent.OS)'
4849
targetPath: 'artifacts/publish/Conformance.Tests/release_net9.0'
50+
publishLocation: 'pipeline'
4951

5052
- task: DotNetCoreCLI@2
5153
displayName: 'Publish MySqlConnector.DependencyInjection.Tests'
@@ -54,10 +56,11 @@ steps:
5456
arguments: '-c Release -f net9.0 --no-build tests/MySqlConnector.DependencyInjection.Tests/MySqlConnector.DependencyInjection.Tests.csproj'
5557
publishWebProjects: false
5658
zipAfterPublish: false
57-
- task: PublishPipelineArtifact@0
59+
- task: PublishPipelineArtifact@1
5860
inputs:
59-
artifactName: 'MySqlConnector.DependencyInjection.Tests-9.0-$(Agent.OS)'
61+
artifact: 'MySqlConnector.DependencyInjection.Tests-9.0-$(Agent.OS)'
6062
targetPath: 'artifacts/publish/MySqlConnector.DependencyInjection.Tests/release_net9.0'
63+
publishLocation: 'pipeline'
6164

6265
- task: DotNetCoreCLI@2
6366
displayName: 'Publish IntegrationTests (9.0)'
@@ -66,10 +69,11 @@ steps:
6669
arguments: '-c Release -f net9.0 --no-build tests/IntegrationTests/IntegrationTests.csproj'
6770
publishWebProjects: false
6871
zipAfterPublish: false
69-
- task: PublishPipelineArtifact@0
72+
- task: PublishPipelineArtifact@1
7073
inputs:
71-
artifactName: 'IntegrationTests-net9.0-$(Agent.OS)'
74+
artifact: 'IntegrationTests-net9.0-$(Agent.OS)'
7275
targetPath: 'artifacts/publish/IntegrationTests/release_net9.0'
76+
publishLocation: 'pipeline'
7377

7478
- task: DotNetCoreCLI@2
7579
displayName: 'Publish IntegrationTests (8.0)'
@@ -78,7 +82,8 @@ steps:
7882
arguments: '-c Release -f net8.0 --no-build tests/IntegrationTests/IntegrationTests.csproj'
7983
publishWebProjects: false
8084
zipAfterPublish: false
81-
- task: PublishPipelineArtifact@0
85+
- task: PublishPipelineArtifact@1
8286
inputs:
83-
artifactName: 'IntegrationTests-net8.0-$(Agent.OS)'
87+
artifact: 'IntegrationTests-net8.0-$(Agent.OS)'
8488
targetPath: 'artifacts/publish/IntegrationTests/release_net8.0'
89+
publishLocation: 'pipeline'

.ci/conformance-test-steps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ steps:
77
condition: always()
88
inputs:
99
contents: '**/*.trx'
10-
- task: DownloadPipelineArtifact@0
10+
- task: DownloadPipelineArtifact@2
1111
condition: always()
1212
inputs:
13+
buildType: 'current'
1314
artifactName: 'Conformance.Tests-9.0-$(Agent.OS)'
1415
targetPath: '$(Build.BinariesDirectory)/9.0'
1516
- task: DotNetCoreCLI@2

.ci/integration-test-steps.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ steps:
1010
condition: always()
1111
inputs:
1212
contents: '**/*.trx'
13-
- task: DownloadPipelineArtifact@0
13+
- task: DownloadPipelineArtifact@2
1414
condition: always()
1515
inputs:
16+
buildType: 'current'
1617
artifactName: ${{ format('IntegrationTests-{0}-$(Agent.OS)', parameters.platform) }}
1718
targetPath: ${{ format('$(Build.BinariesDirectory)/{0}', parameters.platform) }}
1819
- task: DotNetCoreCLI@2
@@ -35,4 +36,4 @@ steps:
3536
testResultsFormat: VSTest
3637
testResultsFiles: '**/*.trx'
3738
testRunTitle: ${{ format('{0}, $(Agent.OS), {1}, {2}', parameters.image, parameters.platform, parameters.description) }}
38-
failTaskOnFailedTests: true
39+
failTaskOnFailedTests: true

.ci/mysqlconnector-tests-steps.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ steps:
44
inputs:
55
version: $(DotNetCoreSdkVersion)
66
includePreviewVersions: true
7-
- task: DownloadPipelineArtifact@0
7+
- task: DownloadPipelineArtifact@2
88
inputs:
9+
buildType: 'current'
910
artifactName: 'MySqlConnector.Tests-9.0-$(Agent.OS)'
1011
targetPath: $(System.DefaultWorkingDirectory)
1112
- task: DotNetCoreCLI@2
@@ -14,8 +15,9 @@ steps:
1415
command: 'custom'
1516
custom: 'vstest'
1617
arguments: 'MySqlConnector.Tests.dll /logger:trx'
17-
- task: DownloadPipelineArtifact@0
18+
- task: DownloadPipelineArtifact@2
1819
inputs:
20+
buildType: 'current'
1921
artifactName: 'MySqlConnector.DependencyInjection.Tests-9.0-$(Agent.OS)'
2022
targetPath: $(System.DefaultWorkingDirectory)
2123
- task: DotNetCoreCLI@2

0 commit comments

Comments
 (0)