At work we have a multi-step process for releasing a product and I'm trying to automate it. A few of these steps involve copying, modifying and deleting jobs on Jenkins. I've discovered how to do all of these via the Jenkins-CLI, but it's very hard to test my process in an automated way. It'd be nice if I could have a tearDown()
method that could do a thinBackup restore to the way things were before I changed any of the jobs. But, I don't see how that can be done. Can someone show me how to restore to a previous configuration without manual steps being involved?
问问题
583 次