1. Resources
  2. /
  3. Blog
  4. /
  5. Job Retries

Job Retries

46 second read

The retry attribute in an example command step

Immutable job history

Previously, if you retried a job, you lost the history of the job that was retried. With this update, the history remains and a new job is created 🎉

Retry history is now preserved 🙌🏻

You can also see when a job has been retried, and whether it was retried automatically or by a user. As always, the number of retries is available as an environment variable on the job.

See how and when your job was retried

Fine-grained control

To complement this improved visibility into retried jobs, you can specify conditions on retries 📋

Set steps to be retried automatically if they exit with particular exit codes, or prevent retries on important steps like deployments.

At Buildkite we’re using this internally to automatically retry any jobs that fail due to one of our AWS Elastic Stack hosts shutting down.

Example code showing different retry configurations

Check out the command step docs for all the details on adding retries to your pipeline.yml steps 📚


Related posts

Start turning complexity into an advantage

Create an account to get started with a 30-day free trial. No credit card required.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Pipeline templates
  3. Public pipelines
  4. Test Engine
  5. Package Registries
  6. Mobile Delivery Cloud
  7. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Webinars
  5. Plugins
  6. Case studies
  7. Events

Company

  1. About
  2. Careers
  3. Press
  4. Brand assets
  5. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for AI/ML

Support

  1. System status
  2. Forum