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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4ac01cd8-0d72-4e43-a137-3848fc24b640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to