Shell
Execute shell commands and Bash scripts within a flow.
Plugin: shell
Group: Core
| Task Type | Alias |
|---|---|
dev.bringup.plugin.core.shell.Shell | Primary |
dev.bringup.plugin.core.shell.Bash | Bash-specific |
dev.bringup.plugin.script.shell.Script | Script mode |
dev.bringup.plugin.core.shell.Commands | Commands mode |
Examples
Basic command execution
id: hello-world
namespace: examples
description: Run a simple shell command
tasks:
- id: greet
type: dev.bringup.plugin.core.shell.Shell
commands:
- echo "Hello from Bringup Labs!"
- date
- whoami
Properties
Common Task Properties
These properties are available on all task types:
| Property | Type | Default | Description |
|---|---|---|---|
id | string | - | Required. Unique task identifier within the flow. Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]*$ |
type | string | - | Required. The task type identifier. |
description | string | null | Human-readable description of what this task does. |
disabled | boolean | false | Skip this task during execution. |
timeout | string | null | Task-specific timeout (e.g., "60s", "5m", "1h"). Overrides flow-level timeout. |
retry | RetryConfig | null | Retry configuration. See Advanced Features. |
allow_failure | boolean | false | Continue flow execution even if this task fails. |
run_if | string | null | Template expression that must evaluate to truthy for the task to run. |
worker_group | WorkerGroup | null | Assign this task to a specific worker pool. |
Outputs
Shell tasks do not produce structured outputs by default. To pass data between tasks:
- Write to a file and reference it in downstream tasks via
outputFiles - Use environment variables that persist within the same Jenkins stage
Notes
- Template variables (
{{ inputs.* }},{{ variables.* }}) are automatically converted to shell environment variables during transpilation. - Commands are joined with newlines and executed as a single
shstep in Jenkins. - For Bash-specific features (arrays,
shopt, etc.), use theBashtask type variant. - Output files are archived using Jenkins'
archiveArtifactsstep.