The trouble is that we have our repository hosted by an external party, preventing hook scrips due to the security issues executing arbitrary scripts could bring. Hook scripts are therefore no option for me. A quick email with our host revealed that Trac offers a Notification functionality which offers HTTP POST and GET commands which could be used to trigger a Jenkins build. I cannot get it to work! Below I have attached my efforts in trying to get it to work, to no avail. Does anyone have a clue where I'm going wrong?
The notifications can be set in Trac under: , "Dashboard", "Notifications", section "Web Hooks".
The fields are:
Custom GET Callback (HTTP GET to a URL of your choice)
- URL:
- Username: (optional)
- Password: (optional)
Custom POST Callback (JSON or XML POST to a URL of your choice)
- URL:
- Username: (optional)
- Password: (optional)
- HTTP Header: (optional)
I have tried the following, to no avail:
- POST command with only a URL: JENKINS_URL/job/HANtune_2.1_MultiConfig/build?token=TOKEN_NAME
- POST command with the above URL and supplying a username and password
- GET command with only the above URL
- GET command with the above URL and supplying a username and password
- POST and GET command with only the URL: http://USERNAME:AUTHENTICATION-TOKEN@JENKINS-IP:PORT/job/JobName/build?token=TOKEN_NAME