@@ -6,85 +6,73 @@ variables:
66 value : ' '
77
88stages :
9- - stage : Cosmos_Live_Test
10- jobs :
11- - template : /eng/pipelines/templates/jobs/archetype-sdk-tests-generate.yml
12- parameters :
13- CloudConfig :
14- SubscriptionConfiguration : $(sub-config-azure-cloud-test-resources)
15- Cloud : Public
16- MatrixConfigs :
17- - Name : Cosmos_live_test
18- Path : sdk/cosmos/platform-matrix.json
19- Selection : all
20- GenerateVMJobs : true
21- AdditionalParameters :
22- ServiceDirectory : cosmos
23- Artifacts :
24- - name : azure-cosmos
25- groupId : com.azure
26- safeName : azurecosmos
27- AdditionalModules :
28- - name : azure-cosmos-benchmark
29- groupId : com.azure
30- TimeoutInMinutes : 120
31- MaxParallel : 8
32- PreSteps :
33- - template : /eng/pipelines/templates/steps/install-reporting-tools.yml
34- TestStepMavenInputs :
35- goals : verify
36- options : ' $(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)'
37- TestResultsFiles : ' **/junitreports/TEST-*.xml'
9+ - template : /eng/pipelines/templates/stages/archetype-sdk-tests.yml
10+ parameters :
11+ MatrixConfigs :
12+ - Name : Cosmos_live_test
13+ Path : sdk/cosmos/platform-matrix.json
14+ Selection : all
15+ GenerateVMJobs : true
16+ ServiceDirectory : cosmos
17+ Artifacts :
18+ - name : azure-cosmos
19+ groupId : com.azure
20+ safeName : azurecosmos
21+ AdditionalModules :
22+ - name : azure-cosmos-benchmark
23+ groupId : com.azure
24+ TimeoutInMinutes : 120
25+ MaxParallel : 8
26+ PreSteps :
27+ - template : /eng/pipelines/templates/steps/install-reporting-tools.yml
28+ TestStepMavenInputs :
29+ goals : verify
30+ options : ' $(ProfileFlag) -Dgpg.skip $(AdditionalArgs) -pl $(ProjectList)'
31+ TestResultsFiles : ' **/junitreports/TEST-*.xml'
3832
39- - stage : Cosmos_Live_Test_Integration
40- dependsOn : []
41- jobs :
42- - template : /eng/pipelines/templates/jobs/archetype-sdk-tests-generate.yml
43- parameters :
44- CloudConfig :
45- SubscriptionConfiguration : $(sub-config-azure-cloud-test-resources)
46- Cloud : Public
47- MatrixConfigs :
48- - Name : Cosmos_live_test_integration
49- Path : sdk/cosmos/integration-matrix.json
50- Selection : all
51- GenerateVMJobs : true
52- AdditionalParameters :
53- ServiceDirectory : cosmos
54- Artifacts :
55- - name : azure-spring-data-cosmos-test
56- groupId : com.azure
57- safeName : azurespringdatacosmostest
58- TimeoutInMinutes : 90
59- EnvVars :
60- AZURE_TEST_MODE : LIVE
61- PreSteps :
62- - template : /eng/pipelines/templates/steps/install-reporting-tools.yml
63- PostSteps :
64- - script : |
65- python --version
66- python -m pip install setuptools termcolor in_place
67- python sdk/spring/scripts/replace_util.py --module cosmos --log debug --color false
68- displayName: 'Run replace_util.py'
69- - task : Maven@3
70- displayName : ' Build and Install again, JDK Version: $(JavaBuildVersion)'
71- inputs :
72- mavenPomFile : pom.xml
73- goals : ' install'
74- options : ' $(DefaultOptions) -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am'
75- mavenOptions : ' $(MemoryOptions) $(LoggingOptions)'
76- javaHomeOption : ' JDKVersion'
77- jdkVersionOption : $(JavaBuildVersion)
78- jdkArchitectureOption : ' x64'
79- publishJUnitResults : false
80- - task : Maven@3
81- displayName : ' Run tests again: $(DisplayName)'
82- inputs :
83- mavenPomFile : pom.xml
84- goals : clean verify
85- options : ' $(ProfileFlag) -Dgpg.skip -Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -pl $(ProjectList)'
86- env :
87- AZURE_TEST_MODE : LIVE
88- TestStepMavenInputs :
89- goals : clean verify
90- options : ' $(ProfileFlag) -Dgpg.skip -Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -pl $(ProjectList)'
33+ - template : /eng/pipelines/templates/stages/archetype-sdk-tests.yml
34+ parameters :
35+ TestName : ' Integration'
36+ MatrixConfigs :
37+ - Name : Cosmos_live_test_integration
38+ Path : sdk/cosmos/integration-matrix.json
39+ Selection : all
40+ GenerateVMJobs : true
41+ ServiceDirectory : cosmos
42+ Artifacts :
43+ - name : azure-spring-data-cosmos-test
44+ groupId : com.azure
45+ safeName : azurespringdatacosmostest
46+ TimeoutInMinutes : 90
47+ EnvVars :
48+ AZURE_TEST_MODE : LIVE
49+ PreSteps :
50+ - template : /eng/pipelines/templates/steps/install-reporting-tools.yml
51+ PostSteps :
52+ - script : |
53+ python --version
54+ python -m pip install setuptools termcolor in_place
55+ python sdk/spring/scripts/replace_util.py --module cosmos --log debug --color false
56+ displayName: 'Run replace_util.py'
57+ - task : Maven@3
58+ displayName : ' Build and Install again, JDK Version: $(JavaBuildVersion)'
59+ inputs :
60+ mavenPomFile : pom.xml
61+ goals : ' install'
62+ options : ' $(DefaultOptions) -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am'
63+ mavenOptions : ' $(MemoryOptions) $(LoggingOptions)'
64+ javaHomeOption : ' JDKVersion'
65+ jdkVersionOption : $(JavaBuildVersion)
66+ jdkArchitectureOption : ' x64'
67+ publishJUnitResults : false
68+ - task : Maven@3
69+ displayName : ' Run tests again: $(DisplayName)'
70+ inputs :
71+ mavenPomFile : pom.xml
72+ goals : clean verify
73+ options : ' $(ProfileFlag) -Dgpg.skip -Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -pl $(ProjectList)'
74+ env :
75+ AZURE_TEST_MODE : LIVE
76+ TestStepMavenInputs :
77+ goals : clean verify
78+ options : ' $(ProfileFlag) -Dgpg.skip -Dmaven.wagon.http.pool=false $(DefaultOptions) -Dmaven.javadoc.skip=true -Drevapi.skip=true -pl $(ProjectList)'
0 commit comments