That was pretty much the first problem I ran into! File Parameters don't currently work with pipelines
https://issues.jenkins-ci.org/browse/JENKINS-27413 On Monday, November 28, 2016 at 11:53:52 AM UTC, José Coelho wrote: > > I am trying to invoke a job that accepts a file: > > build job: 'UploadPackage', parameters: [ > string(name: 'ARCH', value: 'x86_64'), > [$class: 'FileParameterValue', file: new File('myfile'), > originalFileName: "package.rpm"] > > > However, I got: > > java.lang.ClassCastException: hudson.model.FileParameterValue.file expects > interface org.apache.commons.fileupload.FileItem but received class > java.io.File > > > > What am I doing wrong? > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0adc603f-cadb-4e47-82e1-2b149c38dd16%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.