blob: a97d99b0bcaa570c28824890dbb6206943df4c87 (
plain)
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
|
trigger: none
pr:
branches:
include:
- "*"
schedules:
- cron: "0 13 * * *" # 1PM UTC => 5 AM PST
displayName: SslStress nightly run
branches:
include:
- master
pool:
vmImage: 'windows-latest'
variables:
- template: ../variables.yml
- name: sslStressProject
value: $(sourcesRoot)/System.Net.Security/tests/StressTests/SslStress/
# Avoid duplication by referencing corefx build infrastructure hosted in HttpStress
# TODO move to eng/ folder.
- name: httpStressProject
value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress/
- name: sdkBaseImage
value: sdk-corefx-current
- name: sslStressImage
value: sslstress
steps:
- checkout: self
clean: true
fetchDepth: 1
lfs: false
- powershell: |
.\libraries.cmd -ci -c $(BUILD_CONFIGURATION)
docker build -t $(sdkBaseImage) `
--build-arg CONFIGURATION=$(BUILD_CONFIGURATION) `
--build-arg TESTHOST_LOCATION=. `
-f src/libraries/System.Net.Http/tests/StressTests/HttpStress/corefx.windows.Dockerfile `
artifacts/bin/testhost
displayName: Build Libraries
- powershell: |
# we need to include the entire src/libraries folder in the build context due to Common/ dependencies
docker build -t $(sslStressImage) --build-arg SDK_BASE_IMAGE=$(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) -f $(sslStressProject)/windows.Dockerfile src/libraries
displayName: Build SslStress
- powershell: |
cd '$(sslStressProject)'
docker-compose up --abort-on-container-exit --no-color
displayName: Run SslStress
env:
SSLTRESS_IMAGE: $(sslStressImage)
- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(BUILD_CONFIGURATION)'
PublishLocation: Container
ArtifactName: 'sslstress_$(Agent.Os)_$(Agent.JobName)'
continueOnError: true
condition: always()
|