Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Knowing what plans are used where
-
Is there a way, or can we put in a feature request, to display what plans are being used and where?
We are working on cleaning up old plans, including legacy plans, in order to streamline and modernize our BuildMaster deploys. The https://example.com/plan page shows the plans but there is no way to know if it is being used or where it is being used.
Product: BuildMaster
Version: 5.8.2
-
I think one approach you could take would be to utilize the Native API which, using your example, could be found at https://example.com/reference/api. You could call the Pipelines_GetPipelines endpoint, filter by "Active_Indicator" == true, then parse the "Pipeline_Configuration" xml for each pipeline looking for the "PlanName" attribute of the "Properties" element under the "Inedo.BuildMaster.Pipelines.PipelineStageTarget" elements. Here's a snippet of the "Pipeline_Configuration" I get back when I run this, to get a better idea.
<Inedo.BuildMaster.Pipelines.Pipeline Assembly="BuildMaster"> <Properties Name="All" Color="#499e8d" Description="The pipeline that deploys to all environments on all stacks. " EnforceStageSequence="False"> <Stages> <Inedo.BuildMaster.Pipelines.PipelineStage Assembly="BuildMaster"> <Properties Name="Build" TargetExecutionMode="Parallel" AutoPromote="False"> <Targets> <Inedo.BuildMaster.Pipelines.PipelineStageTarget Assembly="BuildMaster"> <Properties PlanName="Main-Build" EnvironmentName="BuildFarm" DefaultServerContext="None"> <ServerNames /> <ServerRoleNames /> </Properties> </Inedo.BuildMaster.Pipelines.PipelineStageTarget> </Targets>
From this you can see I have a Pipeline named "All" that has a stage named "Build" that calls the plan "Main-Build".