Reputation: 123
is there any way, I can make below tasks mandatory so that a user cannot disable it under Build Pipeline(CI) in Azure DevOps
Upvotes: 2
Views: 622
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
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