Managing Credentials
Pranoday Pramod Dingare · Apress eBooks · 2022
Jenkins, as a CI/CD automation server, needs to access different third-party tools—like Nexus artifact repository, Git code repository, etc.—to perform its CI/CD tasks. These artifact and code repositories implement different kinds of authentications, including basic authentication, where users are authenticated using their usernames and passwords, SSH authentication, where users are authenticated by matching private and public keys, and API token-based authentication, where users are authenticated based on an API token sent along with the access request. Jenkins needs to provide the required authentication information when accessing these tools. If a tool that Jenkins is trying to access has basic authentication, Jenkins needs to provide a username and password. If the tool's authentication is set to SSH, then Jenkins needs to provide a private key, and so on.