[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file as documented here: [https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with error [1].Steps to reproduce: execute following script in a pipeline: { { code:java} node(''){ }} {{ String csv = "\"http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764')\", \"hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1\"" }} {{ def rec = readCSV text: csv, format: CSVFormat.DEFAULT }} } { { code } }} [1]: {code: java }java .lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)Caused: java.lang.IllegalArgumentException: Could not instantiate {text="[http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764|http://opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner=] ')", "hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1", format=Delimiter=<,> QuoteChar=<"> RecordSeparator=< > EmptyLines:ignored SkipHeaderRecord:false} for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file as documented here: [https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with error [1].Steps to reproduce: execute following script in a pipeline: {{node(''){}} {{ String csv = "\"http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764')\", \"hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1\""}} {{ def rec = readCSV text: csv, format: CSVFormat.DEFAULT}} {{}}} [1]: {{ }}{{ java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat }} {{ at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) }} {{ at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) }} {{ at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) }} {{ at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) }} {{ at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) }} {{ at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) }} {{ at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) }} {{ at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) }} {{ at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) }} {{ at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) }} {{ at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) }} {{ at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) }} {{ at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) }} {{ at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) }} {{ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) }} {{ at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) }} {{ Caused: java.lang.IllegalArgumentException: Could not instantiate }} { {{ text="[http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764|http://opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner=] ')", "hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1", format=Delimiter=<,> QuoteChar=<"> RecordSeparator=< > EmptyLines:ignored SkipHeaderRecord:false} }}{{ for ReadCSVStep(file?: String
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file as documented here: [https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with error [1].Steps to reproduce: execute following script in a pipeline: {{node(''){}} {{ String csv = "\"http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764')\", \"hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1\""}} {{ def rec = readCSV text: csv, format: CSVFormat.DEFAULT}} {{}}} [1]: {{ }} ava {{java .lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat }} {{ at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) }} {{ at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) }} {{ at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) }} {{ at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) }} {{ at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) }} {{ at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) }} {{ at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) }} {{ at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) }} {{ at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) }} {{ at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) }} {{ at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) }} {{ at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) }} {{ at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) }} {{ at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) }} {{ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) }} {{ at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) }} {{ Caused: java.lang.IllegalArgumentException: Could not instantiate }} { {{ text="[http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764|http://opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner=] ')", "hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1", format=Delimiter=<,> QuoteChar=<"> RecordSeparator=< > EmptyLines:ignored SkipHeaderRecord:false} }}{{ for ReadCSVStep(file?:
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file as documented here: [https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/] When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with error [1].Steps to reproduce: execute following script in a pipeline: {{node(''){}} {{ String csv = "\"http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764')\", \"hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1\""}} {{ def rec = readCSV text: csv, format: CSVFormat.DEFAULT}} {{}}} When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error [1] : {quote}java ava .lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiate Unknown macro: \ {text="[http } :///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764|http://opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner=] ')", "hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1", format=Delimiter=<,> QuoteChar=<"> RecordSeparator=<> EmptyLines:ignored SkipHead
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file as documented here: [https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/] {{node(''){}} {{ String csv = "\"http:///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764')\", \"hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1\""}} {{ def rec = readCSV text: csv, format: CSVFormat.DEFAULT}} {{}}} When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error:{quote}java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiate Unknown macro: \{text="[http} for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.apache.commons.csv.CSVFormat, text?: String) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:293) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file like as documented here: [ official docu title| [ https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/] ]. When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error:{quote}java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiate Unknown macro: \{text="[http} for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.apache.commons.csv.CSVFormat, text?: String) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:293) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMeth
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file like documented here: [official docu title|[https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]]. When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error:{quote}java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiate Unknown macro: \{text="[http} for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.apache.commons.csv.CSVFormat, text?: String) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:293) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file like documented here: [official docu title|[https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]]. When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error:{quote}java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiate Unknown macro: \{text="[http} for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.apache.commons.csv.CSVFormat, text?: String) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:293) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file like documented here: [official docu title|[https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]]. When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error:{quote}java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiate Unknown macro: \ {text="[http :///opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764|http://opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner=] ')", "hystrix-.addressmgr.commands.GetSingleBusinessPartnerByIdCommand#t=#u=-1", format=Delimiter=<,> QuoteChar=<"> RecordSeparator=< > EmptyLines:ignored SkipHeaderRecord:false } for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.apache.commons.csv.CSVFormat, text?: String) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:293) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDesc
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Change By: Florian Geckeler Hi, I would like to read a csv String or file like documented here: [official docu title|[https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]]. When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error:{quote}java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:176) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) Caused: java.lang.IllegalArgumentException: Could not instantiateUnknown macro: \{text="[http}for ReadCSVStep(file?: String, format?: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.apache.commons.csv.CSVFormat, text?: String) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:293) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:13) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:262) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:1
[JIRA] (JENKINS-58137) readCSV fails when passing CSVFormat
Title: Message Title Florian Geckeler created an issue Jenkins / JENKINS-58137 readCSV fails when passing CSVFormat Issue Type: Bug Assignee: Unassigned Components: pipeline-stage-step-plugin Created: 2019-06-21 08:47 Environment: plain sandbox pipeline, jenkins-filerunner Labels: pipeline plugin step readCSV Priority: Minor Reporter: Florian Geckeler Hi, I would like to read a csv String or file like documented here: [official docu title|https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/]. When I pass any CSVFormat (tried it with 'DEFAULT', 'EXCEL', and using the newFormat method as well) as format to the step the pipeline fails with following error: java.lang.ClassCastException: class org.jenkinsci.plugins.pipeline.utility.steps.csv.ReadCSVStep.setFormat() expects class org.apache.commons.csv.CSVFormat but received class org.apache.commons.csv.CSVFormat at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:446) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:386) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:290) at org.jenkinsci.plugins.workflow.steps.StepDescriptor.newInstance(StepDescriptor.java:205) at org.jenkinsci.plugins.pipeline.utility.steps.AbstractFileOrTextStepDescriptorImpl.newInstance(AbstractFileOrTextStepDescriptorImpl.java:25) at org.jenkinsci.plugins.pipeline.utility.steps.Abstr
[JIRA] (JENKINS-56561) Support connecting to multiple networks for Docker containers
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-56561 Support connecting to multiple networks for Docker containers Change By: Florian Geckeler We're using in our pipelines a nexus container as a download cache to speed up our maven or npm steps. To connect to this container we use the docker network, assuming it is called *A*.For classical pipelines this approach works fine, but since a few days we're using sidecar containers in our integrationtests as mentioned in the [official Jenkins documentation |https://jenkins.io/doc/book/pipeline/docker]. For distinguishing Containers in parallel runs we're using a docker network with a UUID and '- - network-alias' to reach the container. To use the download cache and the sidecar container we would have to connect to both docker networks therefore we have to disconnect from network *A* because docker does not support connecting to multiple networks by passing many '- - network' parameters.The proposal of the [official docker documentation |https://success.docker.com/article/multiple-docker-networks] is using 'docker create', 'docker network connect' and 'docker start', which is not yet supported by the plugin.Another approach would be the ability to execute a 'docker network connect' before jumping into the Closure which will be executed in the container. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
[JIRA] (JENKINS-56561) Support connecting to multiple networks for Docker containers
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-56561 Support connecting to multiple networks for Docker containers Change By: Florian Geckeler We're using in our pipelines a nexus container as a download cache to speed up our maven or npm steps. To connect to this container we use the docker network, assuming it is called *A*.For classical pipelines this approach works fine, but since a few days we're using sidecar containers in our integrationtests as mentioned in the [official Jenkins documentation |https://jenkins.io/doc/book/pipeline/docker]. For distinguishing Containers in parallel runs we're using a docker network with a UUID and ' - - network-alias }} ' to reach the container. To use the download cache and the sidecar container we would have to connect to both docker networks therefore we have to disconnect from network *A* because docker does not support connecting to multiple networks by passing many {{ ' - - network }} ' parameters.The proposal of the [official docker documentation |https://success.docker.com/article/multiple-docker-networks] is using {{ ' docker create }} ' , {{ ' docker network connect }} ' and {{ ' docker start }} ' , which is not yet supported by the plugin.Another approach would be the ability to execute a ` ' docker network connect ` ' before jumping into the Closure which will be executed in the container. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
[JIRA] (JENKINS-56561) Support connecting to multiple networks for Docker containers
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-56561 Support connecting to multiple networks for Docker containers Change By: Florian Geckeler We're using in our pipelines a nexus container as a download cache to speed up our maven or npm steps. To connect to this container we use the docker network, assuming it is called *A*.For classical pipelines this approach works fine, but since a few days we're using sidecar containers in our integrationtests as mentioned in the [official Jenkins documentation |https://jenkins.io/doc/book/pipeline/docker]. For distinguishing Containers in parallel runs we're using a docker network with a UUID and ` - - network-alias ` }} to reach the container . To use the download cache and the sidecar container we would have to connect to both docker networks therefore we have to disconnect from network *A* because docker does not support connecting to multiple networks by passing many ` {{ - - network ` }} parameters.The proposal of the [official docker documentation |https://success.docker.com/article/multiple-docker-networks] is using ` {{ docker create ` }} , ` {{ docker network connect ` }} and ` {{ docker start ` }} , which is not yet supported by the plugin.Another approach would be the ability to execute a `docker network connect` before jumping into the Closure which will be executed in the container. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
[JIRA] (JENKINS-56561) Support connecting to multiple networks for Docker containers
Title: Message Title Florian Geckeler updated an issue Jenkins / JENKINS-56561 Support connecting to multiple networks for Docker containers Change By: Florian Geckeler We're using in our pipelines a nexus container as a download cache to speed up our maven or npm steps. To connect to this container we use the docker network, assuming it is called *A*.For classical pipelines this approach works fine, but since a few days we're using sidecar containers in our integrationtests as mentioned in the [official Jenkins documentation |https://jenkins.io/doc/book/pipeline/docker]. For distinguishing Containers in parallel runs we're using a docker network with a UUID and `--network-alias `. To make use the download cache and the sidecar container work we would have to connect to both docker networks therefore we have to disconnect from network *A* because docker does not support connecting to multiple networks by passing many `--network` parameters in .The proposal of the [official docker documentation |https://success.docker.com/article/multiple-docker-networks] is using `docker create`, `docker network connect` and `docker start` , which is not yet supported by the plugin. Another approach would be the ability to execute a `docker network connect` before jumping into the Closure which will be executed in the container. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
[JIRA] (JENKINS-56561) Support connecting to multiple networks for Docker containers
Title: Message Title Florian Geckeler created an issue Jenkins / JENKINS-56561 Support connecting to multiple networks for Docker containers Issue Type: New Feature Assignee: Unassigned Components: docker-workflow-plugin Created: 2019-03-14 13:42 Priority: Major Reporter: Florian Geckeler We're using in our pipelines a nexus container as a download cache to speed up our maven or npm steps. To connect to this container we use the docker network, assuming it is called A. For classical pipelines this approach works fine, but since a few days we're using sidecar containers in our integrationtests as mentioned in the official Jenkins documentation . To make the sidecar container work we have to disconnect from network A because docker does not support connecting to multiple networks by passing many `--network` parameters in. The proposal of the official docker documentation is using `docker create`, `docker network connect` and `docker start` Another approach would be the ability to execute a `docker network connect` before jumping into the Closure which will be executed in the container. Add Comment