I have not been successful at configuring jBPM (or KJAR) projects so that when I save any of my work (a
git commit has occurred), jBPM's Guvnor Git should theoretically execute my script in the post-commit file in the
The following is a simple working post-commit file's content. All it does is to push the committed changes automatically to my remote Git repo. The
echo line is merely a sanity check.
#!C:\Program Files\Git\usr\bin\sh.exe echo Executing post-commit! YAY!! git push origin master
In case anybody's wondering why it is not the usual
#!/bin/sh on the first line, this is the correct path to a
sh.exe file in my Windows environment. It is a working configuration in all of my other projects.
My jBPM projects are imported into RHPAM/Business Central through GitHub via
https://, using my username and password. I can verify that after it's imported, an
origin remote URL has been set.
>> git remote -v origin https://github.com/myusername/my-kjar-project.git (fetch) origin https://github.com/myusername/my-kjar-project.git (push)
For the life of me, I am still scratching my head as to why this configuration is not working in any of my KJAR projects imported through jBPM after placing the post-commit file in the
/hooks folder. I can invoke
git push origin master without problem from the folder location of my jBPM project if I execute it on any CLI.
I followed the Repository hook configuration instructions for RHPAM 7.2, which is applicable for RHPAM 7.x as well as Business central >7.15. If anybody can offer any pointers, I will greatly appreciate the help.
For reference, this is my development environment setup:
- Windows 10
- Git SCM for Windows installed in
- RHPAM 7.2 on EAP 7.2
- Business Central 7.21 on WildFly 14
- GitHub remote repo, using
For other references, this was a reported bug that was supposedly fixed in later versions of RHPAM and Business Central.