jenkinsci / file-operations-plugin

File Operations as Build Step in Jenkins
https://plugins.jenkins.io/file-operations
33 stars 30 forks source link

FileCopyOperation unknown parameter #129

Open delanym opened 1 month ago

delanym commented 1 month ago

Jenkins and plugins versions report

Environment ```text println("Jenkins: ${Jenkins.instance.getVersion()}") println("OS: ${System.getProperty('os.name')} - ${System.getProperty('os.version')}") println("Java: ${System.getProperty('java.version')} - ${System.getProperty('java.vm.vendor')} (${System.getProperty('java.vm.name')})") println "---" Jenkins.instance.pluginManager.plugins .collect() .sort { it.getShortName() } .each { plugin -> println("${plugin.getShortName()}:${plugin.getVersion()}") } return ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows server 2016

Reproduction steps

Add a file copy operation to your Jenkinsfile

        fileOperations([
            fileCopyOperation(sourceFiles: 'build/target/*.zip', targetLocation: 'z:/release/distributions/')
        ])

Expected Results

Copies file without error

Actual Results

22:45:11 WARNING: Unknown parameter(s) found for class type 'sp.sd.fileoperations.FileCopyOperation': sourceFiles 22:45:11 File Copy Operation: 22:45:11 FATAL: Cannot invoke "String.startsWith(String)" because "rel" is null 22:45:11 Cannot invoke "String.startsWith(String)" because "rel" is null 22:45:11 FATAL: Cannot invoke "String.startsWith(String)" because "rel" is null

Anything else?

No response

Are you interested in contributing a fix?

No response