【发布时间】:2022-01-02 02:53:17
【问题描述】:
在我的主要 YAML 中
stages:
- stage: ui_tests
<.......>
- stage: ui_remote_testing
jobs:
- template: status-template.yml
parameters:
polls: [ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ]
在我的 status-template.yml 中
parameters:
- name: "polls"
type: object
default: { }
steps:
-job: polling_job
- ${{ each poll in parameters.polls }}:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
$global:testsCompleted = 0
我需要更改什么才能使模板作为作业运行
【问题讨论】:
标签: azure-devops yaml azure-pipelines azure-pipelines-yaml cicd