Skip to content

Commit 0464792

Browse files
committed
Migrate Windows pipeline to 1ES
1 parent 8940e1f commit 0464792

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ schedules:
1616
jobs:
1717
- job: Windows
1818
pool:
19-
Django-agent-pool
19+
name: SqlClientDrivers-1ES-Windows-agent-pool
20+
demands:
21+
- imageOverride -equals Django_Win2019
2022
timeoutInMinutes: 120
2123

2224
strategy:
@@ -77,6 +79,8 @@ jobs:
7779
displayName: Use Python $(python.version)
7880

7981
- script: |
82+
docker pull mcr.microsoft.com/windows/servercore:1809
83+
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=MyPassword42' -p 1433:1433 -d mcr.microsoft.com/windows/servercore:1809
8084
python -m pip install --upgrade pip wheel setuptools
8185
pip install tox
8286
git clone https://github.com/django/django.git
@@ -85,17 +89,6 @@ jobs:
8589
- script: tox -e $(tox.env)
8690
displayName: Run tox
8791

88-
- task: PublishCodeCoverageResults@1
89-
inputs:
90-
codeCoverageTool: 'Cobertura'
91-
summaryFileLocation: 'C:\Windows\ServiceProfiles\NetworkService\coverage.xml'
92-
93-
- task: PublishTestResults@2
94-
displayName: Publish test results via jUnit
95-
inputs:
96-
testResultsFormat: 'JUnit'
97-
testResultsFiles: 'C:\Windows\ServiceProfiles\NetworkService\result.xml'
98-
testRunTitle: 'junit-$(Agent.OS)-$(Agent.OSArchitecture)-$(tox.env)'
9992

10093
- job: Linux
10194
pool:

0 commit comments

Comments
 (0)