Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    reportingbuildmaster
    2 Posts 2 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jneuharth_9094
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • J Offline
        jharbison
        last edited by

        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".

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation