The plugin provides the following functionality:
auto generation of GIT branch name, stored in a process parameter;
protection against wrong status change for in-progress process;
generation GIT commands for organization of Standard GIT Workflow;
getting Custom code from GIT repository.
| You can see (process Plugin GIT) the plugin operation in Demo System. |
Make sure the plugin is enabled and append to the configuration:
git:param.branch=<PARAM_BRANCH_ID> git:param.email=<PARAM_EMAIL_ID> git:process.allowed.status.with.branch=<ALLOWED_STATUS_IDS> # optional parameters with default values # prefix for branch name and commit message #git:prefix=p # main branch #git:main.branch=master # command after a branch's creation, e.g.: && ./gradlew touchChanges #create.branch.suffix=
Where:
<PARAM_BRANCH_ID> - process parameter type 'text', storing GIT branch, required;
<PARAM_EMAIL_ID> - user parameter type 'email', storing author’s identity;
<ALLOWED_STATUS_IDS> - comma-separated list of allowed status IDs with set branch name.
To enable GIT tab in process card add in type configuration.
git:processShowGit=1
The plugin can work with GIT-stored Custom code in Read Only mode, local repository has no changes and stays always in detached HEAD state. Any mismatching of these requirements is being reflected in UI.
To switch local repository to a proper state, execute the shell command inside custom directory:
git checkout origin/master