0

マトリックス戦略で個々のジョブのステータスを確認するにはどうすればよいですか?

jobs:
  - job: A
    strategy:
      matrix:
        nonprod:
          environment: test
        prod:
          environment: prod
    steps:
      - pwsh: Write-host something random
  - job: B
    dependsOn: A
    condition: how do I check only the prod portion of the Job A ?
    steps:
      - pwsh: Write-Host this should run regardless of nonprod matrix portion, but only if prod has succeeded.
4

1 に答える 1

0

以下のようなものを試すことができます:

condition: and(succeeded(), eq(dependencies.A.outputs['prod.Name.Variable'], 'True'))
于 2020-03-09T09:59:18.783 に答える