2

I am new to concourse and created one concourse pipeline having 2 jobs that are running sequential.

Is there a way to not run second job when first job fails?

I know that i can handle this at task level, but can i handle this at job level?

franklinsijo
  • 17,784
  • 4
  • 45
  • 63
Anshita Singh
  • 1,583
  • 1
  • 17
  • 40

1 Answers1

0

This can be done with the passed attribute of the get step in the job definition. But, that requires a common resource to be used in the get step.

jobs:
  - name: job0 
    plan:
      - get: resource0
      - task: ...
  - name: job1
    plan:
      - get: resource0
        passed: [job0]
      - task: ...
franklinsijo
  • 17,784
  • 4
  • 45
  • 63