manifests/collectors/Management/DevOpsPipelines.psd1
|
# # GENERATED by scripts/ConvertTo-ScoutCollectorDefinition.ps1 from Modules/Public/InventoryModules/Management/DevOpsPipelines.ps1 (AB#5660). # Field expressions are copied verbatim from the original collector and evaluate in an # equivalent scope -- see docs/design/decisions/declarative-collectors.md. # Review before trusting; regenerate rather than hand-patch if the source collector changes. # @{ ResourceTypes = @( 'devops/pipelines' ) ResourceTypeMatching = 'Grouped' AdditionalFilter = $null FilterPreamble = '' RowLoopVariable = '1' Preamble = @' $ResUCount = 1 $data = $1.properties # 'folder' is '\' at the root, which reads as noise in a report column. $folder = if ($data.PSObject.Properties.Name -contains 'folder' -and $data.folder -and $data.folder -ne '\') { $data.folder } else { '(root)' } $configType = if ($data.PSObject.Properties.Name -contains 'configuration' -and $data.configuration) { $data.configuration.type } else { $null } $yamlPath = if ($data.PSObject.Properties.Name -contains 'configuration' -and $data.configuration -and $data.configuration.PSObject.Properties.Name -contains 'path') { $data.configuration.path } else { $null } '@ AdditionalRowLoops = @() TagLoop = $null Fields = @( @{ Name = 'ID' Expression = '$1.id' } @{ Name = 'Organization' Expression = '$1.organization' } @{ Name = 'Project' Expression = '$data.projectName' } @{ Name = 'Pipeline Name' Expression = '$1.name' } @{ Name = 'Pipeline ID' Expression = '$data.id' } @{ Name = 'Folder' Expression = '$folder' } @{ Name = 'Configuration Type' Expression = '$configType' } @{ Name = 'YAML Path' Expression = '$yamlPath' } @{ Name = 'Revision' Expression = '$data.revision' } @{ Name = 'URL' Expression = '$data.url' } @{ Name = 'Resource U' Expression = '$ResUCount' } ) Export = @{ WorksheetName = 'ADO Pipelines' TableNamePrefix = 'ADOPipelinesTable_' Columns = @( 'Organization' 'Project' 'Pipeline Name' 'Pipeline ID' 'Folder' 'Configuration Type' 'YAML Path' 'Revision' 'URL' 'Resource U' ) TagColumns = @() TagColumnsBefore = $null NumberFormat = '0' ConditionalText = @() } SourceCollector = 'Modules/Public/InventoryModules/Management/DevOpsPipelines.ps1' } |