Forum Discussion

kakabubu's avatar
kakabubu
Contributor
2 years ago

Azure pipline yaml cancel TC run

GIVEN azure devops yaml file pipeline devided on two jobs firstJob - some tasks preparing environment, install last version, etc secondJob - some more preparations tasks and run tests task Test r...
  • kakabubu's avatar
    kakabubu
    2 years ago

    The actual problem was with jobs conditions.

    I've added the "and(succeededOrFailed() , ..." and now TC is stopped when the pipeline is canceled.
    The only nuance is that my AfterTests operations are not performed. But that is acceptable for the scenarios in which I will cancel that pipeline.