Jenkins, with default installation, will be run under jenkins
user. That user has no access to your /home/admin
home directory. The Permission denied
is pretty self-explanatory.
- Either give
jenkins
user read access to/home/admin
(not recommended) - Or place the file into
/home/jenkins
directory (not best solution either) - Or better yet, have the file available in shared location accessible by both, preferably the job's workspace that is populated through the SCM (recommended).