Re: Using FilePath to access workspace on slave in Jenkins pipeline

2017-01-19 Thread Rupali Behera
I am also facing the same issue, using `findFiles` does not solve the problem as it only searches for the file in the current directory and does not search for it recursively inside other directories. I have posted the same question on stackoverflow https://stackoverflow.com/questions/41720831/

Re: Using FilePath to access workspace on slave in Jenkins pipeline

2016-12-22 Thread Harsha Adiga
t; > From: Harsha Adiga > > > To: Jenkins Users >, > > Date: 20.12.2016 21:13 > > Subject: Using FilePath to access workspace on slave in Jenkins pipeline > > Sent by: jenkins...@googlegroups.com > > > > I need to check for the existence of a cert

Re: Using FilePath to access workspace on slave in Jenkins pipeline

2016-12-21 Thread Christoph Nenning
Hi, have you tired the findFiles step? https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#findfiles-find-files-in-the-workspace Regards, Christoph > From: Harsha Adiga > To: Jenkins Users , > Date: 20.12.2016 21:13 > Subject: Using FilePath to access workspace

Using FilePath to access workspace on slave in Jenkins pipeline

2016-12-20 Thread Harsha Adiga
I need to check for the existence of a certain .exe file in my workspace as part of my pipeline build job. I tried to use the below Groovy script from my Jenkinsfile to do the same. But I think the File class by default tries to look for the workspace directory on jenkins master and fails. @com

Using FilePath to access workspace on slave in Jenkins pipeline

2016-12-20 Thread Harsha Adiga
I need to check for the existence of a certain .exe file in my workspace as part of my pipeline build job. I tried to use the below Groovy script from my Jenkinsfile to do the same. But I think the File class by default tries to look for the workspace directory on jenkins master and fails. @com