Liangxu Linux
Liangxu Linux
Aug 15, 2020 · Operations

How to Write Robust Shell Scripts: Essential Tips and Best Practices

This guide presents practical techniques for creating reliable Bash scripts, covering syntax checking, automatic exit on errors, execution tracing, undefined‑variable detection, pipe‑fail handling, readonly variables, default values, command chaining, and function usage, with concrete code examples and tool recommendations.

bashset -eshell scripting
0 likes · 7 min read
How to Write Robust Shell Scripts: Essential Tips and Best Practices
DevOps Engineer
DevOps Engineer
Jun 22, 2020 · Operations

Controlling Shell Script Failure Behavior in Jenkins Pipelines

This guide explains how to prevent Jenkins shell steps from aborting on errors by using the +e option, appending || true, or custom failure handling commands, and provides four concrete examples with test results to illustrate each method.

CI/CDError HandlingJenkins
0 likes · 6 min read
Controlling Shell Script Failure Behavior in Jenkins Pipelines