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 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
| Parameter | Required | Default | Description |
|---|---|---|---|
|
No |
|
Custom name for the bundle. Sanitized to alphanumeric characters, hyphens, underscores, and dots. Names that start with a dot are rejected. |
|
Yes |
|
Directory where the final ZIP bundle is saved. |
|
No |
|
Job property path where the JSON result is stored. |
| Parameter | Default | Description |
|---|---|---|
|
On |
Include server version, status, info, and license. |
|
On |
Include database configuration. |
|
On |
Include server setting categories and properties. |
|
On |
Include ACLs, directory providers, users, groups, and SSO configuration. |
|
On |
Include email, analytics, and DevOps Insight configurations. |
|
On |
Include the installed plugins list. |
|
On |
Include resources, resource pools, and zones. |
|
On |
Include project metadata. |
|
On |
Include data retention policies. |
|
On |
Include server status log messages. |
|
Off |
Enable comprehensive log collection through the Flow Log Collector plugin. |
| Parameter | Type | Default | Description |
|---|---|---|---|
|
Checkbox |
Off |
Collect Cloudbees CD/RO server logs. |
|
Checkbox |
Off |
Collect agent logs. |
|
Checkbox |
Off |
Collect repository server logs. |
|
Checkbox |
Off |
Collect Apache web server logs. |
|
Checkbox |
Off |
Collect installation and upgrade logs. |
|
Entry |
Auto-detected |
Target resource name for log collection. |
|
Entry |
Resource assigned to the job |
Resource where the Flow Log Collector plugin builds the log archive. |
|
Entry |
|
Number of days of logs to collect. |
|
Entry |
Calculated from |
Custom start timestamp. Overrides |
|
Entry |
Current time |
Custom end timestamp. |
|
Checkbox |
On |
Obfuscate sensitive data in collected logs. |
| Parameter | Type | Default | Description |
|---|---|---|---|
|
Entry |
|
Maximum number of projects to include. |
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.
-
Initialize: Sets up the bundle name, timestamp, temporary directory, and collection configuration.
-
CollectSystemInfo: Runs
getVersions,getServerStatus --diagnostics 1,getServerInfo, andgetAdminLicense. -
CollectDatabase: Runs
getDatabaseConfiguration. -
CollectConfiguration: Runs
getServerSettingsCategoriesandgetProperties /server --expand 0. -
CollectSecurityConfig: Runs
getAccessfor system objects,getDirectoryProviders,getUsers,getGroups, andgetSsoConfiguration. -
CollectIntegrations: Runs
getEmailConfigs,getAnalyticsServerConfiguration, andgetDevOpsInsightServerConfiguration. -
CollectPlugins: Runs
getPlugins. -
CollectResources: Runs
getResources,getResourcePools, andgetZones. -
CollectProjects: Runs
findObjects projectsorted by project name, limited tomaxProjectCount. -
CollectDataRetention: Runs
getDataRetentionPolicies. -
CollectRecentLogs: Collects server status messages and adds
ABOUT_LOG_COLLECTION.txt. -
PrepareLogCollection: Checks for the Flow Log Collector plugin, resolves the target resource, defaults the worker to the job resource, and calculates the time range.
-
CollectComprehensiveLogs: Launches the Flow Log Collector plugin as a child job and polls for completion.
-
MergeComprehensiveLogs: Reads
results/archivePathfrom the child job and copies the log archive into the bundle. -
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" } }
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 |
|---|---|---|---|
|
Yes |
|
Directory where |
|
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. |
|
No |
|
Look-back window, in days, for activity metrics. Used only when |
|
No |
|
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.
|