I have 2 agents in my release pipeline. 2nd agent should run only based on the output of the fist agent.
1st agent has below code
ssh task:
echo "##vso[task.setvariable variable=isNextExecutable;isOutput=true]true"
2nd agent has the below custom condition
and(succeeded(), eq(variables[isNextExecutable], 'true'))
Also, I tried to update the environment variable using API(followed How to modify Azure DevOps release definition variable from a release task?) but the variables are getting updated only release pipeline is getting completed.
My questions:
1) How to execute the agent based on the custom condition based on the first agent output?
2) Is it possible to add multiple custom condition on the task level? the task should execute if the previous task is executed successfully and based some value which set up in the previous task in the same agent.