Shell Script Job
Shell Script Job
Section titled “Shell Script Job”Execute custom shell commands for tasks not covered by built-in jobs.
Configuration
Section titled “Configuration”| Option | Description |
|---|---|
| Script | Shell commands to run |
| Working Directory | Directory to run in (default: repo root) |
Example Scripts
Section titled “Example Scripts”# Install additional dependenciesgem install fastlane
# Custom build step./scripts/prebuild.sh
# Generate codedart run build_runner build --delete-conflicting-outputsEnvironment
Section titled “Environment”Scripts run with:
- All pipeline environment variables
- Repository cloned and checked out
- Working directory set to repo root
Exit Codes
Section titled “Exit Codes”- 0: Success
- Non-zero: Failure (pipeline fails)
Use Cases
Section titled “Use Cases”- Pre/post build hooks
- Installing dependencies
- Custom tooling
- Legacy build scripts