Forum Discussion

kakabubu's avatar
kakabubu
Contributor
2 years ago
Solved

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 run task is a runTests.ps1 script wich run the "C:\Program Files \...\TestComplete.exe" with parametrs (desired project, etc)
WHEN  I cancel the build
THEN I want testcomplete to stop running the tests

But I cant figure out how make test complete (running on pool agent) know that he should make Runner.Stop(false)
I'm thinking to read from file in the project sources folder, but how can i write to that file from pipelines when build cancels
Did anyone solved the similar problem?