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

Configuration-as-Code compatibility

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      artifactory-3.9.0++

      Description

      Currently the plugin doesn't support JCasC.

      When an Artifactory server is configured in the global config, the JCasC export fails as follows

      unclassified:
       artifactoryBuilder:
       artifactoryServers: "FAILED TO EXPORT org.jfrog.hudson.ArtifactoryBuilder$DescriptorImpl#artifactoryServers:\
       \ \nio.jenkins.plugins.casc.ConfiguratorException: Can't read attribute 'serverId'\
       \ from org.jfrog.hudson.ArtifactoryServer@12d71b12\n\tat io.jenkins.plugins.casc.Attribute._getValue(Attribute.java:252)\n\
       \tat io.jenkins.plugins.casc.Attribute.getValue(Attribute.java:174)\n\tat io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:236)\n\
       \tat io.jenkins.plugins.casc.Attribute.describe(Attribute.java:192)\n\tat io.jenkins.plugins.casc.BaseConfigurator.compare(BaseConfigurator.java:387)\n\
       \tat io.jenkins.plugins.casc.impl.configurators.DescriptorConfigurator.describe(DescriptorConfigurator.java:61)\n\
       \tat io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:105)\n\
       \tat io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.lambda$describe$6(GlobalConfigurationCategoryConfigurator.java:98)\n\
       \tat java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)\n\
       \tat java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\n\
       \tat java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)\n\
       \tat java.util.Iterator.forEachRemaining(Iterator.java:116)\n\tat java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)\n\
       \tat java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\n\
       \tat java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\n\
       \tat java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)\n\
       \tat java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)\n\
       \tat java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n\
       \tat java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)\n\
       \tat io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:98)\n\
       \tat io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:32)\n\
       \tat io.jenkins.plugins.casc.ConfigurationAsCode.export(ConfigurationAsCode.java:411)\n\
       \tat io.jenkins.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:401)\n\
       ...
      

       

        Attachments

          Activity

            People

            Assignee:
            eyalbe Eyal Ben Moshe
            Reporter:
            renescheibe René Scheibe
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: