I know that there are many similar postings, but I have not found a solution, and the advice and solutions presented in the other posts don\'t quite jive with what I\'m seei
I tried to get the svn plugin examples to work, but no luck. Instead I used the build token root plugin and this works without having to poll.
https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin
Build Triggers > Trigger builds remotely option > give it a token
On VisualSVN server add this to the post-commit hook:
SET CSCRIPT=%windir%\system32\cscript.exe
SET VBSCRIPT=C:\Repositories\post-commit-hook-jenkins.vbs
"%CSCRIPT%" "%VBSCRIPT%" "MyJobName" "MyTokenFromBuildTrigger"
For post-commit-hook-jenkins.vbs:
Set args = WScript.Arguments
JobName = args.Item(0)
Token = args.Item(1)
'URL to open....
sUrl = "http://MyJenkinsServer.MyCompany.com/buildByToken/build?job=" + JobName + "&token=" + Token
'POST Request to send.
sRequest = ""
HTTPPost sUrl, sRequest
Function HTTPPost(sUrl, sRequest)
set oHTTP = CreateObject("Microsoft.XMLHTTP")
oHTTP.open "POST", sUrl,false
oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oHTTP.setRequestHeader "Content-Length", Len(sRequest)
oHTTP.send sRequest
HTTPPost = oHTTP.responseText
End Function