Relative Content

Tag Archive for azure-devopsazure-pipelines

Cannot see template repo from template – Azure DevOps

I have a template in devops repo in projectB, in the same repo I also have some scripts and default configuration files. From my code repo in projectA I am able to reference the template but the devops repo is not checked out.

How to resolve “error: pathspec ‘branchname’ did not match any file(s) known to git” in an ADO yaml pipeline

We have an ADO yaml pipeline that will be triggered manually by selecting the branch at run time. The pipeline has a main yaml file that calls template files. However, this issue even occurs in a simple yaml file with all the code in it. Below is the simple yaml file (that can be used for reproducing) showing the branch is checked out, version info is updated to be added back (via the git add command), and finally the git commit and push are attempted. Showing these as separate steps because in the final version of the pipeline, we want them to be in separate template files with other tasks occurring in-between.