My Jenkins is installed on my Windows build machine. I have a directory on
this machine which is dedicated to a Jenkins project.
Within this directory I have a .bat file which sets up environment
variables, e.g.
set GIT_UPDATE_DIR=$WORKSPACE
set MDM_SRC_DIR=$GIT_UPDATE_DIR
set GIT_BRANCH_FULL=
On my remote Linux machine I created a private/public key to communicate
with Jenkins on my Windows machine. I put the public key into
authorized_keys. In Jenkins, I created a credential for this user and
pasted in the private key. I then went to Manage Jenkins --> Configure
System to the SSH