@@ -2,14 +2,15 @@ parameters:
2
2
rootFolder : ' $(Build.SourcesDirectory)'
3
3
runProxy : true
4
4
targetVersion : ' '
5
+ templateRoot : ' $(Build.SourcesDirectory)'
5
6
6
7
steps :
7
8
- pwsh : |
8
- $(Build.SourcesDirectory) /eng/common/scripts/trust-proxy-certificate.ps1
9
+ ${{ parameters.templateRoot }} /eng/common/scripts/trust-proxy-certificate.ps1
9
10
displayName: 'Language Specific Certificate Trust'
10
11
11
12
- pwsh : |
12
- $version = $(Get-Content "$(Build.SourcesDirectory) /eng/common/testproxy/target_version.txt" -Raw).Trim()
13
+ $version = $(Get-Content "${{ parameters.templateRoot }} /eng/common/testproxy/target_version.txt" -Raw).Trim()
13
14
$overrideVersion = "${{ parameters.targetVersion }}"
14
15
15
16
if($overrideVersion) {
@@ -29,21 +30,21 @@ steps:
29
30
30
31
- ${{ if eq(parameters.runProxy, 'true') }} :
31
32
- pwsh : |
32
- Write-Host "##vso[task.setvariable variable=ASPNETCORE_Kestrel__Certificates__Default__Path]$(Build.SourcesDirectory) /eng/common/testproxy/dotnet-devcert.pfx"
33
+ Write-Host "##vso[task.setvariable variable=ASPNETCORE_Kestrel__Certificates__Default__Path]$${{ parameters.templateRoot }} /eng/common/testproxy/dotnet-devcert.pfx"
33
34
Write-Host "##vso[task.setvariable variable=ASPNETCORE_Kestrel__Certificates__Default__Password]password"
34
35
Write-Host "##vso[task.setvariable variable=PROXY_MANUAL_START]true"
35
36
displayName: 'Configure Kestrel and PROXY_MANUAL_START Variables'
36
37
37
38
- pwsh : |
38
39
Start-Process $(Build.BinariesDirectory)/test-proxy/test-proxy.exe `
39
40
-ArgumentList "--storage-location ${{ parameters.rootFolder }}" `
40
- -NoNewWindow -PassThru -RedirectStandardOutput $(Build.SourcesDirectory) /test-proxy.log
41
+ -NoNewWindow -PassThru -RedirectStandardOutput ${{ parameters.templateRoot }} /test-proxy.log
41
42
displayName: 'Run the testproxy - windows'
42
43
condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT'))
43
44
44
45
# nohup does NOT continue beyond the current session if you use it within powershell
45
46
- bash : |
46
- nohup $(Build.BinariesDirectory)/test-proxy/test-proxy > $(Build.SourcesDirectory) /test-proxy.log &
47
+ nohup $(Build.BinariesDirectory)/test-proxy/test-proxy > ${{ parameters.templateRoot }} /test-proxy.log &
47
48
displayName: "Run the testproxy - linux/mac"
48
49
condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT'))
49
50
workingDirectory: "${{ parameters.rootFolder }}"
0 commit comments