Since the jenkins server is authenticated and using https I have to use ssh:// to clone the workflowLibs.git repository.
I have configured jenkins with SSHD and enabled it on port number xxxxx.
I am not sure which USERNAME to use.
I tried setting a password for the jenkins user, but it wouldn't work cloning workflowLibs.git with that user.
git clone ssh://jen...@jenkins.company.com:xxxxx/workflowLibs.git
Cloning into 'workflowLibs'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
For now I have initialized the repository directly on the server:/var/lib/jenkins/workflow-libs and manually transferred the files over. It is not a method I would rely on, but it work for now to get my build scripts in CPS global lib.