Home / PhpStorm / Jenkins Post Commit Hook
To add jenkins post commit hook.
- In jenkins create a new job with the git ssh repo url of the project that you want to run your test against.
- for the credentials use the jenkins user account
- in the build triggers check "poll scm" with no schedule
- in the settings on the gitlab project select webhooks->post commit
- in the url put in http://ci.digitec.local/git/notifyCommit?url=[ssh url] where [ssh url] is the git ssh url to the project. example http://ci.digitec.local/git/notifyCommit?url=git@vc.digitec.local:rwilbert/zf-courses.git
- You can use the test hook. But the jenkins tests will not run unless there are changes to code repo