I have Azure Release Pipeline with one Stage. Within this Stage I have two Agent Jobs: Agent A, Agent B. In Agent A I want to check if some condition is met. If so, then I want to skip Agent B. How can I achieve it without YAML?
I tried to create variable and use it, but variable comes back to initial value after the end of Agent A. I don't want to force failure and use "Only when all previous jobs have succeded".
The classic pipelines can not pass variables between jobs. https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch#use-output-variables-from-tasks
You may try to analyze logs from the previous stage through rest API: Builds - Get Build Logs