parameters: worker_ids: [0, 1, 2, 3] num_workers: 4 demands: [] name: subtest container: jobs: - job: tests_${{ parameters.name }} pool: name: MLNX demands: ${{ parameters.demands }} displayName: ${{ parameters.name }} on worker timeoutInMinutes: 360 strategy: matrix: ${{ each wid in parameters.worker_ids }}: ${{ wid }}: worker_id: ${{ wid }} ${{ if parameters.container }}: container: ${{ parameters.container }} steps: # address permissions issue when some files created as read-only - bash: chmod u+rwx ./ -R - checkout: self clean: true fetchDepth: 100 - bash: | source ./buildlib/az-helpers.sh ./contrib/test_jenkins.sh displayName: Run ./contrib/test_jenkins.sh env: nworkers: ${{ parameters.num_workers }} worker: $(worker_id) BUILD_NUMBER: "$(Build.BuildId)-$(Build.BuildNumber)" JOB_URL: "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)" # Set $JENKINS_RUN_TESTS to empty value to avoid setting CPU affinity in test_jenkins.sh JENKINS_RUN_TESTS: "" # $AZP_AGENT_ID is set for every self-hosted Azure agent (uniq for one host, from 1 to N) EXECUTOR_NUMBER: $(AZP_AGENT_ID) RUN_TESTS: yes JENKINS_TEST_PERF: ${{ parameters.test_perf }} JENKINS_NO_VALGRIND: ${{ parameters.valgrind_disable }} RUNNING_IN_AZURE: yes