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

          renescheibe René Scheibe created issue -
          renescheibe René Scheibe made changes -
          Field Original Value New Value
          Description Currently the plugin doesn't support [JCasC](https://jenkins.io/projects/jcasc/).

          When an Artifactory server is configured in the global config, the JCasC export fails as follows
          {code}
          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\
           ...
          {code}
          Currently the plugin doesn't support [JCasC|https://jenkins.io/projects/jcasc/].

          When an Artifactory server is configured in the global config, the JCasC export fails as follows
          {code:java}
          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\
           ...
          {code}
           
          renescheibe René Scheibe made changes -
          Remote Link This issue links to "jenkins-artifactory-plugin/issues/107 (Web Link)" [ 22365 ]
          Hide
          casz Joseph Petersen (old) added a comment -

          Linked to HAP-1018

          Show
          casz Joseph Petersen (old) added a comment - Linked to  HAP-1018
          casz Joseph Petersen (old) made changes -
          Remote Link This issue links to "HAP-1018 (Web Link)" [ 23229 ]
          Show
          casz Joseph Petersen (old) added a comment - WIP: jfrog/jenkins-artifactory-plugin #169
          casz Joseph Petersen (old) made changes -
          Remote Link This issue links to "jfrog/jenkins-artifactory-plugin #169 (Web Link)" [ 23234 ]
          Hide
          jnz_topdanmark Jon Brohauge added a comment - - edited

          According to this comment: https://github.com/jfrog/jenkins-artifactory-plugin/pull/169#issuecomment-716136886, this plugin works with JCasC.

          Joseph Petersen - Maybe this issue should be marked as resolved?

          Show
          jnz_topdanmark Jon Brohauge added a comment - - edited According to this comment:  https://github.com/jfrog/jenkins-artifactory-plugin/pull/169#issuecomment-716136886 , this plugin works with JCasC. Joseph Petersen  - Maybe this issue should be marked as resolved?
          Hide
          jetersen Joseph Petersen added a comment - - edited

          Done, I resolved the issue

          Show
          jetersen Joseph Petersen added a comment - - edited Done, I resolved the issue
          jetersen Joseph Petersen made changes -
          Released As artifactory-3.9.0++
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

            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: