View credentials details used in Jenkins pipelines

View credentials details used in Jenkins pipelines

MCP uses the Jenkins Credentials Plugin that enables users to store credentials in Jenkins globally. Each Jenkins pipeline can operate only the credential ID defined in the pipeline’s parameters and does not share any security data.

To view the detailed information about all available credentials in the Jenkins UI:

  1. Log in to your Jenkins master located at http://<jenkins_master_ip_address>:8081.

    Note

    The Jenkins master IP address is defined in the classes/cluster/<cluster_name>/cicd/init.yml file of the Reclass model under the cicd_control_address parameter variable.

  2. Navigate to the Credentials page from the left navigation menu.

    All credentials listed on the Credentials page are defined in the Reclass model. For example, on the system level in the ../../system/jenkins/client/credential/gerrit.yml file.

    Examples of users definitions in the Reclass model:

    • With the RSA key definition:

      jenkins:
        client:
          credential:
            gerrit:
              username: ${_param:gerrit_admin_user}
              key: ${_param:gerrit_admin_private_key}
      
    • With the open password:

      jenkins:
        client:
          credential:
            salt:
              username: salt
              password: ${_param:salt_api_password}