|
58 | 58 | - ${{ if or(eq(parameters.osVersion, '1604'), eq(parameters.architecture, 'arm64'))}}:
|
59 | 59 | - name: ArtifactsDirectory
|
60 | 60 | value: '$HELIX_WORKITEM_PAYLOAD/artifacts/BenchmarkDotNet.Artifacts'
|
| 61 | + - ${{ if eq(parameters.osName, 'ubuntu')}}: |
| 62 | + - name: InstallPrerequisites |
| 63 | + value: 'sudo apt-get -y install python3-venv' |
| 64 | + - ${{ if eq(parameters.osName, 'centos')}}: |
| 65 | + - name: InstallPrerequisites |
| 66 | + value: 'sudo yum -y install clang zlib-devel krb5-libs krb5-devel' |
61 | 67 | - ${{ if eq(variables['System.TeamProject'], 'public') }}:
|
62 | 68 | # for public runs, we do not want to upload perflab data
|
63 | 69 | - name: PerfLabArguments
|
|
70 | 76 | - name: HelixApiAccessToken
|
71 | 77 | value: ''
|
72 | 78 | - name: HelixPreCommand
|
73 |
| - value: '$(PreservePythonPath);$(AdditionalHelixPreCommands)' |
| 79 | + value: '$(PreservePythonPath);$(AdditionalHelixPreCommands);$(InstallPrerequisites);' |
74 | 80 | - name: HelixSourcePrefix
|
75 | 81 | value: "pr"
|
76 | 82 | - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
89 | 95 | value: '$(PreservePythonPath);py -3 -m venv %HELIX_WORKITEM_PAYLOAD%\.venv;call %HELIX_WORKITEM_PAYLOAD%\.venv\Scripts\activate.bat;set PYTHONPATH=;py -3 -m pip install azure.storage.blob==12.0.0 --force-reinstall;py -3 -m pip install azure.storage.queue==12.0.0 --force-reinstall;set "PERFLAB_UPLOAD_TOKEN=$(PerfCommandUploadToken)";$(AdditionalHelixPreCommands)'
|
90 | 96 | - ${{ if ne(parameters.osName, 'windows') }}:
|
91 | 97 | - name: HelixPreCommand
|
92 |
| - value: '$(PreservePythonPath);$(SetAllowOpenSsl102);sudo apt-get -y install python3-venv;python3 -m venv $HELIX_WORKITEM_PAYLOAD/.venv;. $HELIX_WORKITEM_PAYLOAD/.venv/bin/activate;export PYTHONPATH=;python3 -m pip install -U pip;pip3 install azure.storage.blob==12.0.0 --force-reinstall;pip3 install azure.storage.queue==12.0.0 --force-reinstall;export PERFLAB_UPLOAD_TOKEN="$(PerfCommandUploadTokenLinux)";$(AdditionalHelixPreCommands)' |
| 98 | + value: '$(PreservePythonPath);$(SetAllowOpenSsl102);$(InstallPrerequisites);python3 -m venv $HELIX_WORKITEM_PAYLOAD/.venv;. $HELIX_WORKITEM_PAYLOAD/.venv/bin/activate;export PYTHONPATH=;python3 -m pip install -U pip;pip3 install azure.storage.blob==12.0.0 --force-reinstall;pip3 install azure.storage.queue==12.0.0 --force-reinstall;export PERFLAB_UPLOAD_TOKEN="$(PerfCommandUploadTokenLinux)";$(AdditionalHelixPreCommands)' |
93 | 99 | - group: DotNet-HelixApi-Access
|
94 | 100 | # perflab upload tokens still exist in this variable group
|
95 | 101 | - group: dotnet-benchview
|
|
0 commit comments