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

hashicorp-vault-plugin: bug in documentation examples

XMLWordPrintable

      Hi,

      https://plugins.jenkins.io/hashicorp-vault-plugin/#documentation

       

      Has examples:

      credentials:
        system:
          domainCredentials:
            - credentials:
                - string:
                    description: "Secret using only secret key name"
                    id: "secretUsingKey"
                    scope: GLOBAL
                    token: "${secretKey1}" < ------------- bug
                - string:
                    description: "Secret using full path"
                    id: "secretUsingKey"
                    scope: GLOBAL
                    token: "${secret/jenkins/passwords/secretKey1}" < -------------- bug
      

      TB:

      Caused by: io.jenkins.plugins.casc.ConfiguratorException: secret is required to configure class org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl

      In examples the token word should be replaced with secret.

      https://github.com/jenkinsci/plain-credentials-plugin/blob/master/src/main/java/org/jenkinsci/plugins/plaincredentials/impl/StringCredentialsImpl.java#L42

      In the document there are other places with "wrong" example.

            ptierno Peter Tierno
            astepano Andrei Stepanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: