I am trying to write a post-push script to trigger Git polling in Jenkins. If I create a 'pre-push' script, the polling is triggered, but when I change it to a'post-push' nothing happens. I have also tried using 'update' and 'post-update'. I am using TortoiseGit and my repo is hosted in GitBlit. I have included the content of my script below:
#!/bin/sh
$(curl <Jenkins URL>/notifyCommit?url=<repo URL>)