Automatically loading secrets from a repository into Jenkins. Based on repository-secrets.
Keys were generated with:
openssl genrsa -out ./id_rsa 2048
openssl rsa -in ./id_rsa -pubout -outform pem -out ./id_rsa.pub
Create credentials in a Jenkins folder and give it the credentials ID
jervis-secrets-test
.
Secret generated with:
echo -n 'plaintext' | openssl rsautl -encrypt -inkey ./id_rsa.pub -pubin | openssl enc -base64 -A
Support added in jervis#64.