Command list-credentials-as-xml
java -jar jenkins-cli.jar -s https://ci.inria.fr/ocaml/ list-credentials-as-xml STORE
Export credentials as XML. The output of this command can be used as input for "import-credentials-as-xml" as is, the only needed change is to set the actual Secrets which are redacted in the output.
STORE : Store ID to export credentials from. 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"