You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the succeeded()job status function within a template expression to ensure that the job only runs if "Build" succeeded and "runTests" is true. Unfortunately, it seems like this isn't allowed - the job "Test" fails with an error message stating that "succeeded" is invalid.
I've tried
and(${{parameters.runTests}}, succeeded())
as well.
Is there a way to evaluate parameters and job status functions in a single boolean expression?
The text was updated successfully, but these errors were encountered:
Description
I have a job in a template that depends on a preceding job as well as a template parameter:
I'm trying to use the
succeeded()
job status function within a template expression to ensure that the job only runs if "Build" succeeded and "runTests" is true. Unfortunately, it seems like this isn't allowed - the job "Test" fails with an error message stating that "succeeded" is invalid.I've tried
and(${{parameters.runTests}}, succeeded())
as well.
Is there a way to evaluate parameters and job status functions in a single boolean expression?
The text was updated successfully, but these errors were encountered: