I have Jenkins server which builds project, build docker image and push it to Google Container Registry.
I am using service account to login to GCR using command docker login -u _json_key -p "$(cat ${service-account.json})" https://gcr.io
as stated here
When this line is executed, content of service-account.json file is printed on console in Jenkins pipeline.
How would I stop credential being printed on console?