Azure pipeline does’t allow to git push throwing ‘GenericContribute’ permission is needed

If you get the following error in your build… TF401027: You need the Git ‘GenericContribute’ permission to perform this action. Details: identity …then, to fix it: Copy the guid part of the identity name from the error message Go to the repository settings Paste the guid into the permissions search box for user or group. … Read more

Can Conditional Variable Assignment be Done in Azure Pipelines?

As an extension to @Mike Murray’s answer, if you are using variable groups you must define additional variables as name value pairs. To use conditional variable assignment in this case would be as follows: variables: – group: ‘my-variable-group’ – name: myfirstadditionalvariable value: 100 – name: myconditionalvariable ${{ if eq( variables[‘Build.SourceBranchName’], ‘master’ ) }}: value: masterBranchValue … Read more

Triggering Azure DevOps builds based on changes to sub folders

You can do like below Create variables based on your microservices with the values “False” E.g,MicroserviceAUpdated= “False”,MicroserviceBUpdated= “False” etc., Add a Powershell script task at the begin of your build definition. The powershell script will do the following: Get the changeset/commit in the build to check which files are changed. Update the MicroserviceAUpdated variable to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)