!!top!! Download Credentials From Jenkins Official
If you need to retrieve a (like a .json key or .p12 certificate) stored in Jenkins, you can use a temporary job to "copy" it into the build workspace for download. Create or configure a freestyle job.
Run the build. The file will appear in the job's , where you can download it directly to your computer. 2. Retrieving Plaintext via Groovy Script Console download credentials from jenkins
In , check "Use secret text(s) or file(s)". If you need to retrieve a (like a
Run the command: java -jar jenkins-cli.jar -s get-credentials-as-xml > credential.xml . download credentials from jenkins
Under , add "Execute shell" and enter: cp $MY_FILE ./retrieved_credential.ext