Ravi Sir's Cards › Chapter 21: Jenkins Pipeline and Jenkinsfile
How do you use a secret in a Jenkinsfile?
How do you use a secret in a Jenkinsfile? Use withCredentials with the credential ID. The secret is an environment variable only inside the block and masked in logs.

Lesson: 21.6 Optional: bind a credential by id (pattern only) · मराठी card