Fail early when credentials or roles are unavailable.
Section: Frequent CI/CD problems and fixes
Missing secrets or permissions
bash
bash
test -n "$API_TOKEN" || { echo "API_TOKEN is required"; exit 1; }Explanation
Early validation produces clearer failures than letting a deploy break halfway through.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Frequent CI/CD problems and fixes
Retry flaky network operations
Wrap downloads or package installs with bounded retries.
Cancel outdated duplicate runs
Keep only the latest run active for a branch or PR.
Enable GitHub Actions step debug logging
Turn on runner debug logs for detailed troubleshooting.
Replay Jenkins pipeline with edits
Retry a failed Jenkins pipeline with small script adjustments.