I don't think this will work as is, this needs to be run under sudo otherwise it won't be able to read root's keyring. Alternatively we could just insert the key into the jenkins user keyring.