2

I am trying to configure Jenkins on CentOS VM. I have already tried it on Windows and become successful. But on CentOS i can't run it. It shows the problems related to git. enter image description here The problem can be in git installation on Jenkins. Here is my configuration.

enter image description here

My console

enter image description here Can anyone give me a solution of this?

1 Answers1

3

The default path for Git on CentOS should be:

/usr/local/git/bin

You will find the same installation process (and same path) in this blog post.

More generally, if you have access to the CentOS VM, do a

which git

to see where it is installed.

Note that the warning you see "Installed git version too old for credentials support" would mean that:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Unknown option: -version usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path] [-p|--paginate|--no-pager] [--no-replace-objects] [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS] –  Oct 25 '15 at 11:35
  • 1
    @Asif `-version` is not an option: `--version` is – VonC Oct 25 '15 at 11:36
  • it will be git --version –  Oct 25 '15 at 11:36
  • Yes. And it successfully build my gradle project. Thank you so much. –  Oct 25 '15 at 11:50