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

cannot export certificate credential

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.3.3

      Description

      currently certificate cannot be easily exported due to missing stapler converter

      credentials:
        system:
          domainCredentials:
          - credentials:
            - usernamePassword:
                description: "testing user pass"
                id: "testing.user.pass"
                password: "{AQAAABAAAAAQBNSp+lQPLqE9vM9tzbbf7vFHAM5zDVtPYizetEpo0Fo=}"
                scope: GLOBAL
                username: "test"
            - certificate:
                description: "testing certificate"
                id: "test.certificate"
                keyStoreSource: "FAILED TO EXPORT com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl#keyStoreSource:\
                  \ org.apache.commons.lang.IllegalClassException: Expected: com.cloudbees.plugins.credentials.SecretBytes,\
                  \ actual: com.cloudbees.plugins.credentials.SecretBytes\r  at com.cloudbees.plugins.credentials.SecretBytes$StaplerConverterImpl.convert(SecretBytes.java:367)\r\
                  \  at com.cloudbees.plugins.credentials.SecretBytes$StaplerConverterImpl.convert(SecretBytes.java:359)\r\
                  \  at org.apache.commons.beanutils.ConvertUtilsBean.convert(ConvertUtilsBean.java:544)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:239)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$convertToNode$de0cd4f8$1(HeteroDescribableConfigurator.java:233)\r\
                  \  at io.vavr.CheckedFunction0.lambda$unchecked$52349c75$1(CheckedFunction0.java:201)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.convertToNode(HeteroDescribableConfigurator.java:233)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$describe$5(HeteroDescribableConfigurator.java:103)\r\
                  \  at io.vavr.control.Option.map(Option.java:373)\r  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:103)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:51)\r\
                  \  at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:197)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:255)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$convertToNode$de0cd4f8$1(HeteroDescribableConfigurator.java:233)\r\
                  \  at io.vavr.CheckedFunction0.lambda$unchecked$52349c75$1(CheckedFunction0.java:201)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.convertToNode(HeteroDescribableConfigurator.java:233)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$describe$5(HeteroDescribableConfigurator.java:103)\r\
                  \  at io.vavr.control.Option.map(Option.java:373)\r  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:103)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:51)\r\
                  \  at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:193)\r\
                  \  at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:255)\r\
                  \  at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:193)\r\
                  \  at com.cloudbees.plugins.credentials.casc.SystemCredentialsProviderConfigurator.describe(SystemCredentialsProviderConfigurator.java:76)\r\
                  \  at com.cloudbees.plugins.credentials.casc.SystemCredentialsProviderConfigurator.describe(SystemCredentialsProviderConfigurator.java:48)\r\
                  \  at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:197)\r\
                  \  at com.cloudbees.plugins.credentials.casc.CredentialsRootConfigurator.describe(CredentialsRootConfigurator.java:90)\r\
                  \  at com.cloudbees.plugins.credentials.casc.CredentialsRootConfigurator.describe(CredentialsRootConfigurator.java:52)"
                password: "{AQAAABAAAAAQj/YRHipPxGeU136Y+vu6Rjh9OUWRKnCwFg6Gf+A2SUQ=}"
                scope: GLOBAL
      

        Attachments

          Activity

          casz Joseph Petersen (old) created issue -
          casz Joseph Petersen (old) made changes -
          Field Original Value New Value
          Issue Type Task [ 3 ] Bug [ 1 ]
          jetersen Joseph Petersen made changes -
          Assignee Joseph Petersen [ jetersen ]
          jetersen Joseph Petersen made changes -
          Assignee Joseph Petersen [ jetersen ]
          timja Tim Jacomb made changes -
          Assignee Tim Jacomb [ timja ]
          timja Tim Jacomb made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          timja Tim Jacomb made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          Hide
          timja Tim Jacomb added a comment -
          Show
          timja Tim Jacomb added a comment - resolved as part of https://issues.jenkins-ci.org/browse/JENKINS-60467
          timja Tim Jacomb made changes -
          Released As 2.3.3
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]

            People

            Assignee:
            timja Tim Jacomb
            Reporter:
            casz Joseph Petersen (old)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: