Mellanox / ci-demo

Apache License 2.0
2 stars 19 forks source link

Check if conf_file has single absolute path #64

Closed vasily-v-ryabov closed 2 years ago

vasily-v-ryabov commented 2 years ago

It fixes the problem when parameter "conf_file" has only one absolute file path:

java.io.IOException: Expecting Ant GLOB pattern, but saw '/full-path/to-file.yaml'

Among other solutions we tried new File("${env.conf_file}"), but during access to file.path it prints below error that blocks us from creating FileWrapper similar to findFiles() function.

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.io.File getPath