| 1 | parameters: |
| 2 | - name: branch |
| 3 | type: string |
| 4 | |
| 5 | - name: version |
| 6 | type: string |
| 7 | |
| 8 | - name: image |
| 9 | type: string |
| 10 | |
| 11 | - name: run |
| 12 | type: boolean |
| 13 | |
| 14 | - name: pool |
| 15 | type: string |
| 16 | default: '' |
| 17 | |
| 18 | jobs: |
| 19 | - job: test_${{ parameters.branch }}_${{ parameters.version }} |
| 20 | displayName: "${{ parameters.version }} tests - ${{ parameters.branch }}" |
| 21 | dependsOn: [] |
| 22 | condition: and(succeeded(), eq('${{ parameters.run }}', true)) |
| 23 | variables: |
| 24 | ob_outputDirectory: '$(Build.SourcesDirectory)\out' |
| 25 | ob_artifactBaseName: 'drop_wsl' |
| 26 | ob_artifactSuffix: '_test' |
| 27 | timeoutInMinutes: 360 |
| 28 | cancelTimeoutInMinutes: 420 |
| 29 | ${{ if eq(parameters.pool, '') }}: |
| 30 | pool: {'type': 'cloudtestagentless'} |
| 31 | |
| 32 | ${{ else }}: |
| 33 | pool: ${{ parameters.pool }} |
| 34 | steps: |
| 35 | - task: CloudTestServerBuildTask@2 |
| 36 | inputs: |
| 37 | DisplayName: "${{ parameters.version }} tests - ${{ parameters.branch }}" |
| 38 | connectedServiceName: "CloudTest-PROD" |
| 39 | cloudTestTenant: "wsl" |
| 40 | testMapLocation: 'testbin\x64\cloudtest\wsl-test-image-${{ parameters.image }}-${{ parameters.version}}\TestMap.xml' |
| 41 | pipelineArtifactName: "drop_wsl_build" |
| 42 | pipelineArtifactBuildUrl: '$(System.TaskDefinitionsUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)' |
| 43 | buildDropArtifactName: "" |
| 44 | timeoutInMinutes: 360 |
| 45 | sessionTimeout: 360 |
| 46 | cancelTimeoutInMinutes: 420 |
| 47 | TestTimeout: "0.05:00:00" |
| 48 | parserProperties: "worker:VsTestVersion=V150;session:HoldTrigger=Failure;VstsTestResultAttachmentUploadBehavior=Always" |
| 49 | notificationSubscribers: $(Build.RequestedForEmail) |