Cleaned up the hudson-post-receive script#3
Cleaned up the hudson-post-receive script#3boxerab wants to merge 7 commits intostephenh:masterfrom boxerab:master
Conversation
…l post-receive-hudson
…l post-receive-hudson
…rom command line and calling from another script
|
Hi Aaron, Thanks for revising the patch. I'm taking a look at integrating it. One question, for running multiple post receive scripts, did you see the sample file: https://github.com/stephenh/git-central/blob/master/server/post-receive.sample This lets you capture the stdin input into a variable and pass it along to multiple separate post-receive hooks. Would this achieve what you needed without the need for the hudson()? (Also, I don't see where newrev is set the way you're calling the script--it's used to conditionally get the email address. oldrev isn't currently used, but I think it'd be simpler to keep the script assuming it is passed the standard post-receive stdin input.) |
|
Cool, that echo trick would work. Also, yes, good idea to pass in all three post-receive inputs. |
|
That'd be great, Aaron, thanks. |
…structive for users 2. added post-receive-redmine script, which pushes changes to redmine copy of repository 3. improved post-receive-hudson: added configurable parent job name and parent branch name, where the parent job is used as a template to create new hudson jobs (for new branches)
|
Hi Stephen, Cheers, |
…leted; also added our custom post-receive-email script
Hi Stephen,
So, here is another version of the post receive script. I made the script work via either the command line,
or called from another script: in my case, I do call it from the main post-receive script, along with a few other "post receive" scripts, and so I can't read the parameters in from command line or they won't be available to my other scripts. I have also made the hudson user name and password configurable. And, following your suggestion, I only read USER_EMAIL from git log if it has not been set.
Check it out and let me know what you think.
Cheers,
Aaron