-
Improvement
-
Resolution: Unresolved
-
Major
-
None
We have automated Hudson, so that when a commit in SVN is called, the hook triggers a build in Hudson. However, if a specific token is inserted in the SVN comments, our hook should trigger a build task (like, deploy when using "@deploy" in the SVN commit message).
But, our deploy script needs the user that triggered that build, and as an automated process, I can get that info from my SVN but I don´t see how to pass to the URL executed:
Eg:
http://myhudson/batchTasks/task/Test/execute
Passing HUDSON_USER as a parameter would be nice
- depends on
-
JENKINS-1628 Add logged-in username to batch-task environment vars
-
- Closed
-
I don't think a parameter for execute is the right approach here. If you actually want to trigger the task AS that user, then pass username/password credentials via wget/curl and then your task will get that user in the HUDSON_USER env var. Otherwise, can't your task run an svn command to get the user for that commit/revision?