The FlexDeploy Git plugin makes it easy to interact with source code stored in a Git repository. This plugin requires a Git client to be stored on the FlexDeploy server and any endpoints which will execute Git plugin operations. FlexDeploy allows users to configure Git repository connection details to be shared by various projects and other configurations at a project level. This allows workflows to perform clone and tag operations within a workflow.
...
Executes native commands using Git client
Supports partial and shallow checkouts from Git Repository
...
Target Group Properties
Property Name | Required | Description |
---|---|---|
| Yes | The URL to the remote GIT repository. |
| Yes | The username to the remote GIT repository. |
| Yes | The password for |
| No | The GIT executable folder. |
...
Git 1.7.9 or higher is needed for FlexDeploy, but . If yum installs a lower version . In order to install newer version, we by default, then you need to get the Git source code and build it for install. Here is reference - https://tecadmin.net/install-git-2-0-on-centos-rhel-fedora/.
Run these steps as root. You can download a newer version as well than 2.7.1 as well.
yes | yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yes | yum install gcc perl-ExtUtils-MakeMaker
cd $HOME
tar -xvzf v2.7.1.tar.gz
cd git-2.7.1/
make prefix=/usr/local all
make prefix=/usr/local install
Info |
---|
On some other instances target groups including some Oracle Cloud instances, it may be necessary to either change lines 7+8 by removing the /local or by adding symlinks in /usr. The git executable must be on the path without running the .bash_profile or any other scripts because FlexDeploy won't run those scripts when SSHing to the endpoint. |
...
To create a Personal access token, follow the below link
...
Admin:repo_hook- read:repo_hook read repository hooks for a clone, If if you are doing commit from FlexDeploy then you need write:repo_hook
...