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

JCasC definition doesn't work

XMLWordPrintable

      Export from our instance produces YAML like (sensitive info is removed):

      unclassified"
        globalCIConfiguration:
          configs:
          - activeMqMessagingProvider:
              authenticationMethod:
                sSLCertificateAuthenticationMethod:
                  keypwd: "<foo>"
                  keystore: "<foo>.jks"
                  trustpwd: "<foo>"
                  truststore: "<foo>.jks"
              broker: "failover:(ssl://foo1.com:XYZ,ssl://foo2.com:XYZ)"
              name: "Foo name"
              topicProvider: "Foo provider"
              useQueues: true
      

      which looks correct, but produces an exception and Jenkins boot-up failed:

      Caused by: java.lang.IllegalArgumentException: No com.redhat.jenkins.plugins.ci.authentication.activemq.ActiveMQAuthenticationMethod implementation found for SSLCertificateAuthenticationMethod
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$lookupDescriptor$11(HeteroDescribableConfigurator.java:153)
              at io.vavr.control.Option.orElse(Option.java:302)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lookupDescriptor(HeteroDescribableConfigurator.java:152)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$configure$3(HeteroDescribableConfigurator.java:80)
              at io.vavr.Tuple2.apply(Tuple2.java:239)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.configure(HeteroDescribableConfigurator.java:79)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.configure(HeteroDescribableConfigurator.java:51)
              at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.tryConstructor(DataBoundConfigurator.java:131)
              at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.instance(DataBoundConfigurator.java:74)
              at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:268)
              at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.configure(DataBoundConfigurator.java:80)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$doConfigure$16668e2$1(HeteroDescribableConfigurator.java:219)
              at io.vavr.CheckedFunction0.lambda$unchecked$52349c75$1(CheckedFunction0.java:201)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.doConfigure(HeteroDescribableConfigurator.java:219)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$null$2(HeteroDescribableConfigurator.java:82)
              at io.vavr.control.Option.map(Option.java:373)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$configure$3(HeteroDescribableConfigurator.java:82)
              at io.vavr.Tuple2.apply(Tuple2.java:239)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.configure(HeteroDescribableConfigurator.java:79)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.check(HeteroDescribableConfigurator.java:88)
              at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.check(HeteroDescribableConfigurator.java:51)
              at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:345)
              at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:288)
              at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:353)
              at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:288)
              at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$6(ConfigurationAsCode.java:666)
              at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:628)
              at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:666)
              at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:650)
              at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:549)
              at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:277)
              at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:269)
              ... 13 more
      

            olivergondza Oliver Gondža
            pajasoft Pavel Janoušek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: