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/
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
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
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
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