I just spent a day wading through a decade's worth of SO questions, forum posts and the Jenkins Subversion Plugin wiki and documentation.
The question I was trying to answer:
- What is the current minimal setup required to trigger jobs by Subversion commits?
Questions I couldn't answer:
- What are pros / cons of using
wgetvscurl? - What is the effect of passing the
REVparameter?
Working with Jenkins 2.164.3 and Subversion 1.9.7, each set up on it's own Ubuntu Server 18.04, and each behind it's own Apache HTTP Server with LetsEncrypt SSL certificates for HTTPS.
This is the minimal svn post-commit hook that worked for me:
Notes:
USER:API_TOKENseems to be enough (no need for crumbs).Content-Typeheaders seems to be just fine?rev=${REV}seems to be just fine (what's the difference?)Jenkins log output with (8,706) and without (-1) rev parameter:
Job configuration: