Create SupportBundle plugin procedures

5 minute readExtensibilityDeveloper productivity

Plugin procedures can be used in procedure steps, process steps, and pipeline tasks, allowing you to orchestrate third-party tools at the appropriate time in your component, application process, or pipeline.

Depending on your plugin configuration and how you run procedures, the Input parameters  Configuration name field may behave differently in the Cloudbees CD/RO UI. For more information, refer to Differences in plugin UI behavior.

GenerateSupportBundle

Orchestrates the collection of all diagnostic data and packages it into a ZIP bundle.

GenerateSupportBundle input parameters

Table 1. Bundle configuration
Parameter Required Default Description

bundleName

No

support-bundle-<timestamp>

Custom name for the bundle. Sanitized to alphanumeric characters, hyphens, underscores, and dots. Names that start with a dot are rejected.

outputLocation

Yes

/tmp/support-bundles

Directory where the final ZIP bundle is saved.

resultProperty

No

/myJob/supportBundle/result

Job property path where the JSON result is stored.

Table 2. Data collection flags
Parameter Default Description

includeSystemInfo

On

Include server version, status, info, and license.

includeDatabase

On

Include database configuration.

includeConfiguration

On

Include server setting categories and properties.

includeSecurity

On

Include ACLs, directory providers, users, groups, and SSO configuration.

includeIntegrations

On

Include email, analytics, and DevOps Insight configurations.

includePlugins

On

Include the installed plugins list.

includeResources

On

Include resources, resource pools, and zones.

includeProjects

On

Include project metadata.

includePolicies

On

Include data retention policies.

includeRecentLogs

On

Include server status log messages.

includeComprehensiveLogs

Off

Enable comprehensive log collection through the Flow Log Collector plugin.

Table 3. Comprehensive log options (used only when includeComprehensiveLogs is enabled)
Parameter Type Default Description

collectFlowServerLogs

Checkbox

Off

Collect Cloudbees CD/RO server logs.

collectFlowAgentLogs

Checkbox

Off

Collect agent logs.

collectFlowRepositoryLogs

Checkbox

Off

Collect repository server logs.

collectApacheLogs

Checkbox

Off

Collect Apache web server logs.

collectInstallerLogs

Checkbox

Off

Collect installation and upgrade logs.

logTargetResources

Entry

Auto-detected

Target resource name for log collection.

logWorkerName

Entry

Resource assigned to the job

Resource where the Flow Log Collector plugin builds the log archive.

logDaysBack

Entry

7

Number of days of logs to collect.

logStartTimestamp

Entry

Calculated from logDaysBack

Custom start timestamp. Overrides logDaysBack.

logEndTimestamp

Entry

Current time

Custom end timestamp.

obfuscateLogSensitiveData

Checkbox

On

Obfuscate sensitive data in collected logs.

Table 4. Size limits
Parameter Type Default Description

maxProjectCount

Entry

50

Maximum number of projects to include. 0 means unlimited, with a server cap of 1000.

GenerateSupportBundle steps

Each collector step runs only if its corresponding parameter is selected. Collectors are best-effort: a failure in one collector does not block the others.

  1. Initialize: Sets up the bundle name, timestamp, temporary directory, and collection configuration.

  2. CollectSystemInfo: Runs getVersions, getServerStatus --diagnostics 1, getServerInfo, and getAdminLicense.

  3. CollectDatabase: Runs getDatabaseConfiguration.

  4. CollectConfiguration: Runs getServerSettingsCategories and getProperties /server --expand 0.

  5. CollectSecurityConfig: Runs getAccess for system objects, getDirectoryProviders, getUsers, getGroups, and getSsoConfiguration.

  6. CollectIntegrations: Runs getEmailConfigs, getAnalyticsServerConfiguration, and getDevOpsInsightServerConfiguration.

  7. CollectPlugins: Runs getPlugins.

  8. CollectResources: Runs getResources, getResourcePools, and getZones.

  9. CollectProjects: Runs findObjects project sorted by project name, limited to maxProjectCount.

  10. CollectDataRetention: Runs getDataRetentionPolicies.

  11. CollectRecentLogs: Collects server status messages and adds ABOUT_LOG_COLLECTION.txt.

  12. PrepareLogCollection: Checks for the Flow Log Collector plugin, resolves the target resource, defaults the worker to the job resource, and calculates the time range.

  13. CollectComprehensiveLogs: Launches the Flow Log Collector plugin as a child job and polls for completion.

  14. MergeComprehensiveLogs: Reads results/archivePath from the child job and copies the log archive into the bundle.

  15. CreateBundle: Creates the ZIP archive, publishes it as an artifact, and writes the JSON result to resultProperty.

GenerateSupportBundle examples

Using ectool:

ectool runProcedure /plugins/SupportBundle/project \ --procedureName GenerateSupportBundle \ --actualParameter \ bundleName=prod-incident-2024-04-13 \ outputLocation=/tmp/support-bundles \ includeSystemInfo=1 \ includeDatabase=1 \ includeConfiguration=1 \ includeSecurity=1 \ includeIntegrations=1 \ includePlugins=1 \ includeResources=1 \ includeProjects=1 \ includePolicies=1 \ includeRecentLogs=1 \ includeComprehensiveLogs=0 \ maxProjectCount=50
▼

With comprehensive logs:

ectool runProcedure /plugins/SupportBundle/project \ --procedureName GenerateSupportBundle \ --actualParameter \ outputLocation=/tmp/support-bundles \ includeSystemInfo=1 \ includeComprehensiveLogs=1 \ collectFlowServerLogs=1 \ collectFlowAgentLogs=0 \ logDaysBack=7 \ obfuscateLogSensitiveData=1
▼

GenerateSupportBundle output

ZIP bundle structure

<bundleName>.zip ├── MANIFEST.txt ├── system/ │ ├── version.xml │ ├── server-status.xml │ ├── server-info.xml │ └── license.xml ├── database/ │ └── database-config.xml ├── configuration/ │ ├── setting-categories.xml │ └── server-properties.xml ├── security/ │ ├── acls.xml │ ├── directory-providers.xml │ ├── users.xml │ ├── groups.xml │ └── sso-config.xml ├── integrations/ │ ├── email-configs.xml │ ├── analytics-config.xml │ └── devops-insight-config.xml ├── plugins/ │ └── plugins-list.xml ├── resources/ │ ├── resources-list.xml │ ├── resource-pools.xml │ └── zones.xml ├── projects/ │ └── projects-list.xml ├── policies/ │ └── data-retention-policies.xml └── logs/ ├── ABOUT_LOG_COLLECTION.txt ├── server-status-messages.xml └── (comprehensive log ZIPs, if enabled)
▼

Result property

When resultProperty is set, the plugin writes a JSON result:

{ "bundleName": "support-bundle-20240413-143022", "bundlePath": "/tmp/support-bundles/support-bundle-20240413-143022.zip", "bundleSizeMB": "0.33", "timestamp": "20240413-143022", "status": "success", "collectors": { "systemInfo": "success", "database": "success", "configuration": "success", "security": "success", "integrations": "success", "plugins": "success", "resources": "success", "projects": "success", "policies": "success", "logs": "success" } }
▼

Artifact

The bundle is also published as the artifact support-bundles:<bundleName>, available on the job Artifacts tab.

GenerateFeatureUsageReport

Reports which Cloudbees CD/RO features are in use on an installation and how many objects back each feature. The procedure uses existing APIs only and reads aggregate counts, not customer content. It is independent of GenerateSupportBundle.

GenerateFeatureUsageReport input parameters

Parameter Required Default Description

outputLocation

Yes

/tmp/feature-usage

Directory where feature-usage.json and feature-usage.html are written. Created if missing.

includeActivityMetrics

No

Off

Adds activity metrics: per-day jobs, pipelines, releases, and deployments, job outcome health, last run, and per-plugin usage. These metrics query large tables and can take several minutes on very large servers.

activityWindowDays

No

7

Look-back window, in days, for activity metrics. Used only when includeActivityMetrics is enabled.

resultProperty

No

/myJob/featureUsage/result

Job property path where a JSON summary is stored.

What the report collects

  • Feature usage: All 42 features in the product feature catalogue, grouped by category. For 31 features, the report shows whether the feature is in use and its object count. The other 11 features have no backing object in the API and are marked as not available. Where a catalogue name differs from current product terminology, the current term is shown alongside.

  • Installation details: Server version, install type (traditional or Kubernetes), license edition, and high availability (cluster node count).

  • Agents: Agent count, platforms, and versions.

  • Plugins: Installed (promoted) plugins.

  • Dashboards and components: Dashboards (user-created, DORA, and Release Command Center), DevOps Insight, and artifact management.

  • Activity metrics (optional): Per-day jobs, pipelines, releases, and deployments over the activity window, job outcome health, last run, pipeline and catalog details, and per-plugin usage.

GenerateFeatureUsageReport steps

CollectFeatureUsage collects the data, writes feature-usage.json and feature-usage.html to outputLocation, publishes both as an artifact, sets the step summary, and writes the JSON summary to resultProperty. Each ectool call is bounded by a timeout, and the step log shows progress for each phase.

GenerateFeatureUsageReport examples

ectool runProcedure /plugins/SupportBundle/project \ --procedureName GenerateFeatureUsageReport \ --actualParameter \ outputLocation=/tmp/feature-usage
▼

With activity metrics for the last 7 days:

ectool runProcedure /plugins/SupportBundle/project \ --procedureName GenerateFeatureUsageReport \ --actualParameter \ outputLocation=/tmp/feature-usage \ includeActivityMetrics=1 \ activityWindowDays=7
▼

GenerateFeatureUsageReport output

  • feature-usage.json: Full payload (installation, feature usage, agents, plugins, components, and activity metrics when enabled).

  • feature-usage.html: Human-readable report of the same data.

Both files are published as the artifact feature-usage-reports:feature-usage:<timestamp>, available on the job Published artifacts tab.

When resultProperty is set, the procedure writes a JSON summary:

{ "status": "success", "serverVersion": "2026.12.0.187838", "installType": "traditional", "windowDays": 7, "featureUsage": { "total": 42, "inUse": 27, "notInUse": 4, "noObject": 11 }, "totals": { "jobsStarted": 42, "jobsCompleted": 41, "pipelinesStarted": 5, "pipelinesCompleted": 5, "releasesStarted": 2, "releasesCompleted": 0, "deployments": 8 }, "agents": 2, "pluginsInstalled": 37, "successRate": 81.0, "freshness": "active (last 24h)", "jsonArtifact": "feature-usage-reports:feature-usage:20261113T120533Z" }
▼

totals and successRate are populated only when includeActivityMetrics is enabled.

  • Artifact publishing permission: Publishing requires modify permission on the artifacts system object for the user running the procedure. Without it, the report files are still written to outputLocation and the step logs a warning.

  • Large servers: Leave includeActivityMetrics off for a fast report on very large installations. Core feature usage and object counts are always collected.