Tabrez Shams
Tabrez Shams

Reputation: 133

run azure pipeline task as per dynamic conditions

Can we run task of azure pipeline as per dynamic condition?

Actually i want to run some of the task from the listed task, and every time choice of the task to run maybe different as per user requirement.

Upvotes: 0

Views: 858

Answers (1)

Hugh Lin
Hugh Lin

Reputation: 19491

For your issue,I think you can set conditions through Control Options in task to control the run of task. If this does not meet your needs, you can give a specific example, so that I can better understand your request.

Inside the Control Options of each task you can specify the conditions under which the task will run.

If the built-in conditions don't meet your needs, then you can specify custom conditions

enter image description here

Conditions are written as expressions. The agent evaluates the expression beginning with the innermost function and works its way out. The final result is a boolean value that determines if the task should run or not. See the expressions topic for a full guide to the syntax.

Here is a document provided some examples,you can refer to it.

Upvotes: 1

Related Questions