Prerequisites

  • Job Configuration History plugin should be installed in Jenkins.

References

Restore deleted Jobs

Lets delete a job first

Jenkins

Go to Jenkins Homepage/Dashboard –> click on Job Config History

Jenkins

Click on Show deleted jobs only and click on restore icon next to the Job name

Jenkins
Jenkins

Now Job is restored but not enabled to run the pipeline

Click on Enbale to enable the restored job

Jenkins

Now pipeline is fully enabled and we can run the pipeline now.

Jenkins