I am working on a Jenkins CI/CD setup to build and sign android apps. keystore base64 data is stored in a secret vault(https://www.hashicorp.com/products/vault). To convert it into jks file I am running below command in JenkinsFile. The issue is its printing the entire key(visible under Jenkins console output section).
sh "echo ${keystore} | base64 --decode > android/app/keystore.jks"
Jenkins console output:
Is there any other way to convert it into jks file without exposing sensitive data in logs.
2