Command import-credentials-as-xml
java -jar jenkins-cli.jar -s https://ci.inria.fr/ocaml/ import-credentials-as-xml STORE
Import credentials as XML. The output of "list-credentials-as-xml" can be used as input here as is, the only needed change is to set the actual Secrets which are redacted in the output.
STORE : Store ID to import credentials to. For example the Jenkins credentials
global store would be identified by "system::system::jenkins", and
folder scoped credentials as "folder::item::/full/name/of/folder"