Hello, I develop a new Jenkins plugin for a mobile security app. I have to read a file on the workspace of the build but I always got FileNotFoundException.
The build is executed on a docker container with docker-plugin. I get the file with : FilePath workspace = this.context.get(FilePath) File file = new File(String.valueOf(workspace) + step.filePath) byte[] filebytes = Files.readAllBytes(app.toPath()) <---- FileNotFoundException here It is like my code is searching the file on my local machine but not on the docker container. Do you know how to get a file on a Jenkins agent? Thanks. Mathieu DELROCQ -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" 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-dev/d3dd7e0a-cfa7-4ad0-b021-093b81cb23f5%40googlegroups.com.
