Jenkins integration with Github plugin for Private repository -


i have installed jenkins in azure vm. version - 1.651.2

path git : enter image description here

installed plugins : credentials plugin - 2.0.7 git hub credentials plugin - 0.24 git hub plugin - 1.19.1 ssh credentials plugin - 1.12

enter image description here

enter image description here in repo url tried both https , ssh username/password , ssh/private key aswell, still unable pull git server.

console output :

started user anonymous building in workspace c:\program files (x86)\jenkins\workspace\staging build [ws-cleanup] deleting project workspace... [ws-cleanup] done cloning remote git repository cloning repository https://github.com/--/--.git c:\program files\git\bin\git.exe init c:\program files (x86)\jenkins\workspace\staging build # timeout=10 fetching upstream changes https://github.com/---/---.git c:\program files\git\bin\git.exe --version # timeout=10 using git_ssh set credentials  using .gitcredentials set credentials c:\program files\git\bin\git.exe config --local credential.username jenkins # timeout=10 c:\program files\git\bin\git.exe config --local credential.helper store --file=\"c:\windows\temp\git7879671492423343442.credentials\" # timeout=10 c:\program files\git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/---/---.git +refs/heads/*:refs/remotes/origin/* # timeout=2 error: timeout after 2 minutes c:\program files\git\bin\git.exe config --local --remove-section credential # timeout=10 error: error cloning remote repo 'origin' hudson.plugins.git.gitexception: command "c:\program files\git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/---/---.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout:  stderr:      @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommandin(cligitapiimpl.java:1719)     @ org.jenkinsci.plugins.gitclient.cligitapiimpl.launchcommandwithcredentials(cligitapiimpl.java:1463)     @ org.jenkinsci.plugins.gitclient.cligitapiimpl.access$300(cligitapiimpl.java:63)     @ org.jenkinsci.plugins.gitclient.cligitapiimpl$1.execute(cligitapiimpl.java:314)     @ org.jenkinsci.plugins.gitclient.cligitapiimpl$2.execute(cligitapiimpl.java:506)     @ hudson.plugins.git.gitscm.retrievechanges(gitscm.java:1057)     @ hudson.plugins.git.gitscm.checkout(gitscm.java:1097)     @ hudson.scm.scm.checkout(scm.java:485)     @ hudson.model.abstractproject.checkout(abstractproject.java:1269)     @ hudson.model.abstractbuild$abstractbuildexecution.defaultcheckout(abstractbuild.java:607)     @ jenkins.scm.scmcheckoutstrategy.checkout(scmcheckoutstrategy.java:86)     @ hudson.model.abstractbuild$abstractbuildexecution.run(abstractbuild.java:529)     @ hudson.model.run.execute(run.java:1738)     @ hudson.model.freestylebuild.run(freestylebuild.java:43)     @ hudson.model.resourcecontroller.execute(resourcecontroller.java:98)     @ hudson.model.executor.run(executor.java:410) error: null finished: failure 

note: https://github.com/--/--.git have replace repo names --- security purpose , have checked urls don't mismatch. going wrong here?

edit :

i able clone gitbash using both ssh , https url. enter image description here added deploy keys in github repo aswell.