patternyamlMinor
Rename build pipeline .yml files in Azure DevOps
Viewed 0 times
filesazuredevopsymlbuildpipelinerename
Problem
I have a .NET Core application that has three build pipelines. (Windows, Linux, macOS)
In each of them, the application gets assembled a little different. This part works so far.
Azure created for each pipeline a .yml file in the root folder of the repository.
I would like to rename them to something like azure-pipelines-platform.yml
But when I do so, the configuration in Azure gets broken. I can rename the build configuration, but not the file. And I find no way to configure the link between .yml file and Build config in DevOps
Is it generally not possible to rename the .yml files?
In each of them, the application gets assembled a little different. This part works so far.
Azure created for each pipeline a .yml file in the root folder of the repository.
- azure-pipelines.yml (Linux Build)
- azure-pipelines-1.yml (Windows Build)
- azure-pipelines-2.yml (macOS Build)
I would like to rename them to something like azure-pipelines-platform.yml
But when I do so, the configuration in Azure gets broken. I can rename the build configuration, but not the file. And I find no way to configure the link between .yml file and Build config in DevOps
Is it generally not possible to rename the .yml files?
Solution
As suggested by @030, I have prepared two screenshots that show how to connect the .yml files with the build pipeline.
-
Rename the .yml file in the repository
-
Open the pipeline editor
-
Select the file from the dropdown
-
Select the in step 1 renamed *.yml file and click on
After the existing .yml is assigned, the pipeline works as before the renaming.
-
Rename the .yml file in the repository
-
Open the pipeline editor
-
Select the file from the dropdown
-
Select the in step 1 renamed *.yml file and click on
save.After the existing .yml is assigned, the pipeline works as before the renaming.
Context
StackExchange DevOps Q#9657, answer score: 6
Revisions (0)
No revisions yet.