Rapid-fire: how do you debug a failing pipeline job inside a runner container?
IntermediateProductionRapid-Fire Commands
Answer
Reproduce with the same image and commands locally, then inspect interactively.
docker run --rm -it -v "$PWD":/work -w /work maven:3.9-eclipse-temurin-21 bash
# inside: replay the failing script line by line
env | sort | grep -E 'CI|GIT|JAVA|PATH'
# on a Kubernetes agent pod:
kubectl -n jenkins-agents logs <pod> -c maven
kubectl -n jenkins-agents describe pod <pod>
More on Rapid-Fire Commands
Rapid-fire: how do you trigger a GitHub Actions workflow from the CLI and watch it?BeginnerRapid-fire: how do you list and manage GitHub secrets and variables via CLI?BeginnerRapid-fire: how do you validate a GitHub Actions workflow locally?BeginnerRapid-fire: how do you validate a `.gitlab-ci.yml` and trigger a pipeline from the CLI?BeginnerRapid-fire: how do you trigger a Jenkins job remotely with parameters?IntermediateRapid-fire: how do you validate a Declarative Jenkinsfile from the command line?Intermediate