[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Francisco Fernández updated JENKINS-57557 Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Francisco Fernández Status: In Review Closed Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.4321.1582299060264%40Atlassian.JIRA.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Francisco Fernández updated JENKINS-57557 Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Francisco Fernández Status: In Progress Review Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.1967.1568997720199%40Atlassian.JIRA.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Francisco Fernández edited a comment on JENKINS-57557 Re: JCasC: Branch discovery traits failure in config roundtrips (strategyId) There is no issue importing the yaml file, at least with the latest version of the plugin: The sample file is not correct. The following is an example of exported yaml file using the latest versions of _github-branch-sources_ and _configuration-as-code_.{code:java}globalLibraries: libraries: - defaultVersion: "master" name: "jenkins-pipeline-lib" retriever: modernSCM: scm: github: id: "e43d6600-ba0e-46c5-8eae-3989bf654055" repoOwner: "jenkins-infra" repository: "pipeline-library" traits: - gitHubBranchDiscovery: strategyId: 1 - originPullRequestDiscoveryTrait: strategyId: 1 - gitHubForkDiscovery: strategyId: 1 trust: "trustPermission"{code}I will open a couple of PRs to test the compatibility. EDIT: * [ttps://github.com/jenkinsci/github-branch-source-plugin/pull/247|https://github.com/jenkinsci/github-branch-source-plugin/pull/247] * [https://github.com/jenkinsci/configuration-as-code-plugin/pull/1071] Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Francisco Fernández commented on JENKINS-57557 Re: JCasC: Branch discovery traits failure in config roundtrips (strategyId) There is no issue importing the yaml file, at least with the latest version of the plugin: The sample file is not correct. The following is an example of exported yaml file using the latest versions of github-branch-sources and configuration-as-code. globalLibraries: libraries: - defaultVersion: "master" name: "jenkins-pipeline-lib" retriever: modernSCM: scm: github: id: "e43d6600-ba0e-46c5-8eae-3989bf654055" repoOwner: "jenkins-infra" repository: "pipeline-library" traits: - gitHubBranchDiscovery: strategyId: 1 - originPullRequestDiscoveryTrait: strategyId: 1 - gitHubForkDiscovery: strategyId: 1 trust: "trustPermission" I will open a couple of PRs to test the compatibility. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Francisco Fernández assigned an issue to Francisco Fernández Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Francisco Fernández Assignee: Francisco Fernández Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.436.1568814480311%40Atlassian.JIRA.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Francisco Fernández started work on JENKINS-57557 Change By: Francisco Fernández Status: Open In Progress Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.438.1568814480339%40Atlassian.JIRA.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Oleg Nenashev Component/s: configuration-as-code-plugin Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.5315.1558351200163%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev commented on JENKINS-57557 Re: JCasC: Branch discovery traits failure in config roundtrips (strategyId) Basically it looks like the class is not properly recovered from the array object. Invalid configuration elements for type class jenkins.plugins.git.traits.BranchDiscoveryTrait : strategyId. Available attributes : at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:372) at stratagyId exists for child classes, but not for BranchDiscoveryTrait itself CC Joseph Petersen, likely this is an issue in the JCasC plugin Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.5314.1558351200101%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Oleg Nenashev When I export a configuration to JCasC, e.g. for a Pipeline library with GitHub source, I get the following sample: globalLibraries: libraries: - defaultVersion: "master" name: "jenkins-pipeline-lib" retriever: modernSCM: scm: github: id: "e43d6600-ba0e-46c5-8eae-3989bf654055" repoOwner: "jenkins-infra" repository: "pipeline-library" traits: - branchDiscoveryTrait: strategyId: 1 - originPullRequestDiscoveryTrait: strategyId: 1 - forkPullRequestDiscoveryTrait: strategyId: 1 trust: "trustPermission" When the same configuration is imported, I get {code:java}SEVERE: Failed ConfigurationAsCode.init java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) ... 8 more Caused by: io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:633) at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:665) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:649) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:548) at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:277) at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:269) ... 13 moreCaused by: io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.plugins.git.traits.BranchDiscoveryTrait : strategyId. Available attributes : at
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev assigned an issue to Unassigned Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Oleg Nenashev Assignee: Mark Waite Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.5312.1558350960215%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Oleg Nenashev Component/s: github-branch-source-plugin Component/s: git-plugin Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199468.155835070.5310.1558350960182%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Oleg Nenashev When I export a configuration to JCasC, e.g. for a Pipeline library with GitHub source, I get the following sample: globalLibraries: libraries: - defaultVersion: "master" name: "jenkins-pipeline-lib" retriever: modernSCM: scm: github: id: "e43d6600-ba0e-46c5-8eae-3989bf654055" repoOwner: "jenkins-infra" repository: "pipeline-library" traits: - branchDiscoveryTrait: strategyId: 1 - originPullRequestDiscoveryTrait: strategyId: 1 - forkPullRequestDiscoveryTrait: strategyId: 1 trust: "trustPermission" When the same configuration is imported, I get {code:java}SEVERE: Failed ConfigurationAsCode.init java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) ... 8 more Caused by: io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:633) at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:665) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:649) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:548) at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:277) at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:269) ... 13 more Caused by: io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.plugins.git.traits.BranchDiscoveryTrait : strategyId. Available attributes : at
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev updated an issue Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Change By: Oleg Nenashev When I export a configuration to JCasC, e.g. for a Pipeline library with GitHub source, I get the following sample: globalLibraries: libraries: - defaultVersion: "master" name: "jenkins-pipeline-lib" retriever: modernSCM: scm: github: id: "e43d6600-ba0e-46c5-8eae-3989bf654055" repoOwner: "jenkins-infra" repository: "pipeline-library" traits: - branchDiscoveryTrait: strategyId: 1 - originPullRequestDiscoveryTrait: strategyId: 1 - forkPullRequestDiscoveryTrait: strategyId: 1 trust: "trustPermission" When the same configuration is imported, I get {code:java}SEVERE: Failed ConfigurationAsCode.init java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) ... 8 more Caused by: io.jenkins.plugins.casc.ConfiguratorException: unclassified: error configuring 'unclassified' with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:633) at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:665) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:649) at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:548) at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:277) at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:269) ... 13 more Caused by: io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.plugins.git.traits.BranchDiscoveryTrait : strategyId. Available attributes : at
[JIRA] (JENKINS-57557) JCasC: Branch discovery traits failure in config roundtrips (strategyId)
Title: Message Title Oleg Nenashev created an issue Jenkins / JENKINS-57557 JCasC: Branch discovery traits failure in config roundtrips (strategyId) Issue Type: Bug Assignee: Mark Waite Components: git-plugin Created: 2019-05-20 11:11 Labels: jcasc-compatibility Priority: Minor Reporter: Oleg Nenashev When I export a configuration to JCasC, e.g. for a Pipeline library with GitHub source, I get the following sample: When the same configuration is imported, I get SEVERE: Failed ConfigurationAsCode.init java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) ... 8 more Caused by: