Blog post 1 (Restore job config)

Restore job config

To do that I had to have the Job Configuration History plugin installed, so that it preserve the old config.xml’s and it could show what has changed.

But it does have a link for downloading the old config.xml file. I downloaded it.

Jenkins has a command-line interface, CLI. ssh may want to authenticate you and you must add your ssh public key to your Jenkins user information.

to restore the old job configuration was a simple one-liner:

ssh -p jenkinshost update-job jobname < config.xml

The port where Jenkins listens for ssh protocol (PORT) is random by default. You can either set it to a fixed port in the Jenkins configuration or you can look up the port number from Jenkins HTTP headers.