-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathtests-supported-spring-versions-template.yml
More file actions
76 lines (75 loc) · 3.42 KB
/
tests-supported-spring-versions-template.yml
File metadata and controls
76 lines (75 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
parameters:
- name: TestName
type: string
default: 'SpringIntegration'
- name: PreSteps
type: object
default: []
- name: EnvVars
type: object
default: {}
- name: Artifacts
type: object
default: []
- name: TimeoutInMinutes
type: number
default: 60
- name: BuildOptions
type: string
default: '-Denforcer.skip=true'
- name: TestResourceDirectories
type: object
default: []
- name: MatrixConfigs
type: object
default:
- Name: Spring_Boot_Supported_Version_Tests
Path: sdk/spring/pipeline/tests-supported-version-matrix.json
Selection: sparse
GenerateVMJobs: true
NonSparseParameters:
- SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION
- name: TestOptions
type: string
default: $(TestOptions)
- name: MatrixConfigFileName
type: string
default: ''
stages:
- template: /eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml
parameters:
TestResourceDirectories: ${{ parameters.TestResourceDirectories }}
Artifacts: ${{ parameters.Artifacts }}
TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
ServiceDirectory: spring
TestName: ${{ parameters.TestName }}
BuildOptions: ${{ parameters.BuildOptions }}
EnvVars: ${{ parameters.EnvVars }}
TestGoals: "clean verify"
TestOptions: ${{ parameters.TestOptions }}
MatrixConfigs: ${{ parameters.MatrixConfigs }}
PreGenerationSteps:
- script: |
python ./sdk/spring/scripts/compatibility_update_supported_version_matrix_json.py -mcp ${{ parameters.MatrixConfigs[0].Path }}
displayName: 'Update supported Spring versions'
MatrixFilters:
- JavaTestVersion=^(?!1.8|1.11).*
AdditionalSparseCheckoutPaths:
- 'sdk/spring'
PreSteps:
- ${{ parameters.PreSteps }}
- bash: |
echo "##vso[task.setVariable variable=SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION]$(python ./sdk/spring/scripts/compatibility_get_spring_cloud_version.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION))"
displayName: 'Set supported Spring version to environment variables'
- bash: |
echo "$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION):"
echo "https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION)/spring-boot-dependencies-$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION).pom"
echo "$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION):"
echo "https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-dependencies/$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION)/spring-cloud-dependencies-$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION).pom"
displayName: 'Log Spring version and Maven pom path'
- script: |
python ./sdk/spring/scripts/compatibility_insert_dependencymanagement.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION) -c $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION) --usage integration
displayName: 'Insert Spring dependency managements'
- script: |
python ./sdk/spring/scripts/compatibility_delete_version.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION) --usage integration
displayName: 'Remove unused dependency versions'