0

I'm trying to clone a private github enterprise repository using jenkins job builder. How do I provide the username/password or API token of the github user so that jenkins can clone the directory?

Doing all this through an ansible playbook, so manually adding the git credentials to jenkins is not possible

Rohil
  • 177
  • 1
  • 3
  • 13
  • If you use your enterprise jenkins server, you can contact with the jenkins admin to add the credential in Jenkins -> System menu from Jenkins Web UI – yong Mar 29 '18 at 04:02
  • I’m using enterprise GitHub. Jenkins is just the public version – Rohil Mar 29 '18 at 04:18

1 Answers1

0

You have to use credentials plugin for that. Here I am attaching the link to it. Feel free to explore around it. Hope this helps. If you find any trouble, comment here.

https://wiki.jenkins.io/display/JENKINS/Credentials+Plugin

SV Madhava Reddy
  • 1,858
  • 2
  • 15
  • 33