Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54221

Add an example of a certificate authentication with service-principal to documentation

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • _unsorted
    • None

      Im trying to get azure-credentials-plugin to work with certificate credentials but I cant find an example of how to configure and use this in a pipeline in the documentation, and all the examples I have found around the internet show how to use client secrets.

      I have added a pfx/pkcs#12 password to the certificats in jenkins, referenced in the Azure Credentials plugin config, and configured my pipeline with the credentials-id and used the example shown in the documentation as base for my pipeline code.

      When I run the pipeline, I can see that that environment variables for clientid, tenant, subscription is populated from my credentials configuration but no trace of any certificate and no mention in the documentation of where/when/how the certificate is presented in the pipeline.

      It should be provided as a path to the -p parameter when running az login, but I cant find any trace of amything in my environment or workspace that the certificate has been provided to my build in any way. 

      It would be very helpfull if the documentation could provide an working example of how to use the plugin for a certificate in adition to the client secret example.

            jieshe Jie Shen
            denne Daniel Ellensen
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: