Skip to content

Preflight command to show config-repo definition #18

@ankitsri11

Description

@ankitsri11

Notes from @marques-work:

Essentially, this is a dupe of #9 (which I just closed in favor of this issue because this one has more context/convo.

Summary of #9:

It would be nice to have a visual representation of the effective hierarchy created by the config after the preflight call returns.


It would be nice to have a preflight command to display the config-repo definition such as:

  • List down number of pipelines
  • Show pipeline definition

Examples:

  • Add config-repo
    ./gocd config 'path/to/config-repo/directory'

  • List down number of pipelines
    ./gocd configrepo show config-repo

Output:

Pipeline1
Pipeline2
Pipeline3
  • Show pipeline definition

./gocd configrepo show config-repo pipeline1

Output:

Pipeline1 
(material1:url)
(material2:url)
├── stage1
│   ├── job1- task1 (command)
              task2 (command)
│   └── job2- task3 (command)
              task4 (command)
├── stage2
│   └── job1
└── stage3
    ├── job1
    ├── job2
    └── job3

/cc: @arvindsv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions