Brian H
Brian H

Reputation: 1041

Recover previous Jenkins build configuration

Is there a way to recover a Jenkins build configuration from a previous build?

In order to access the Jenkins server I use I need to open an SOCKS proxy. I went to submit a modification to the configuration but the SOCKS tunnel had closed so I reconnected it. Jenkins/my browser displayed an error saying the reload failed and do I want to resubmit the POST request. I said yes and instead of submitting the changes to the configuration I wanted it submitted a blank body.

So now the configuration for my build is completely empty and I'm annoyed.

I tried checking online for solutions and didn't see any way to extract the configuration from a previous build

Upvotes: 0

Views: 1479

Answers (2)

Sayem
Sayem

Reputation: 104

You should try using rebuild plugin.

1. Install rebuild plugin.
2. select the build that you want to rebuild and press rebuild.

enter image description here

Upvotes: 0

Ian W
Ian W

Reputation: 4767

The only thing that might have saved you is a backup ( or OS backup ?). There are various - Backup, ThinBackup, Periodic Backup, SCM Sync Configuration and others, but no Time Machine or D'oh! plugin that I know of.

Install the Job Configuration History and at least you'll quickly protected for the next time.

Upvotes: 1

Related Questions