When using Azure DevOps, there are times when the pipeline YAML file is not discovered and I'm unable to manually run a build.
In our case we only run automatically on commits to the master
and develop
branchesm, so it's expected that we run other branches manually. At this time we only have the pipeline YAML file in our develop
branch.
Following these steps, Azure DevOps cannot find the pipeline YAML file and will not allow you to trigger a manual run.
- Create a new called
test-branch
, branching from 'master'. - Delete
test-branch
. - Re-create
test-branch
, branching fromdevelop
.
I can now see that the pipeline YAML file exists for the branch in the repository. However, when I try to manually run that branch the 'Run' button is greyed out. When I try to edit the pipeline YAML file I'm presented with the following error -
File azure-pipelines.yml not found in repository GitHubOrg/Repository at version/branch test-branch.
To be clear, the pipelie YAML file exists and runs on other branches. But it's almost like Azure DevOps is not properly pulling branch when I select to run/edit it, and I can't see any way to force that action.
I don't want to have to delete the pipeline from Azure DevOps because I'd lose my existing build history and have to update the associated deployment, but as it stands I can't see any other way.
Has anyone else experienced this behaviour and come up with a fix?
azure-pipelines.yml
intest-branch
and re-create one? Are you able to capture a fiddler trace when you edit the YAML file? – Cece Dong - MSFTreadme
and committed that, and then Azure DevOps was able to findazure-pipelines.yml
. – David GardAzure Repos Git
. Are you able to reproduce this issue on other client machine? – Cece Dong - MSFT