Network_127
Network_127

Reputation: 123

How to make a Azure Pipeline Build task mandatory?

is there any way, I can make below tasks mandatory so that a user cannot disable it under Build Pipeline(CI) in Azure DevOps

enter image description here

Upvotes: 2

Views: 622

Answers (2)

Bright Ran-MSFT
Bright Ran-MSFT

Reputation: 13859

You can develop a Pipeline decorator extension and then install it to your organization. Pipeline decorators let you add steps to the beginning and end of every pipeline job.

To view more details, you can see "Use a decorator to inject steps into a pipeline".

Normally, only the Organization Owner or Project Collection Administrators can add or delete the extensions on the organization. So, other users are not able to remove the decorators from the pipelines.

Upvotes: 3

Sajeetharan
Sajeetharan

Reputation: 222692

If you are the owner of the organization, you can manage it through the settings.

Navigate to Your Project -> Pipeline -> Manage Security and probably you need to restrict the user from editing the pipeline

There are various policies available which you can play around.

Upvotes: 2

Related Questions