How to restore the setting encrypted by credential plugin?

30 views
Skip to first unread message

Ryanivanka

unread,
Aug 26, 2015, 3:41:35 AM8/26/15
to Jenkins Users
Hi Experts,

I met a problem that I use thinbackup plugin to backup the jenkins home everyday, but if the jenkins server fail and recover, I copy over all the jenkins home, including jobs, many plugin xml configuration and secret files. The Credentails seems not working, like user name and password saved for github, and tokens for github. If I re-input the credentials, I can use the new created ones. But all the old ones which recovered from the backup file are not working, in some error state. 


If I understand it right, all the credential is encrypted with random key. So if we create a new jenkins server, we cannot reuse the credentials by just copy and paste the secret files. Am I right?

If that's the problem, is there any way I can restore the credentials? because I use marathon to re-create jenkins automatically when it fails, if I still need to be notified about this and need to reset all the credential manually, that sounds like a waste of time. 

Thank you for your help.
Ryanivanka
Reply all
Reply to author
Forward
0 new messages