In my setup, I have a project that is based off a git repository. Basically, I use this project to monitor a repository, and if there's anything new, trigger *another* project which takes in certain parameters, such as the commit tested, and an email address (for reports). I would like to have the author's email address of the last commit on the given branch.
I've tried several ways, but so far no success: * There's GIT_AUTHOR_EMAIL, but that only uses whatever I set it to, it does not dynamically read the the author/committer email address from the changelog. Also, there's an option called 'Use commit author in changelog', I'm not sure what that actually affects. * I can read the email address using `git log -1 --pretty=%ae` from the 'Execute Shell' section. But then how can I use it later on? I was hoping that 'Capture build context information' -> 'Capture Environment variables' would allow me to export variables from the shell section, but that doesn't seem to work. I will admit I don't really know what the BuildContextCapture Plugin does. * What I can do is trigger the next step remotely from within the 'Execute Shell' field, but that seems wrong and plus, I don't get any result info in the current project. Still, that's currently the best solution I have. Any advice is highly appreciated! Thanks, Martin -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/561863B2.9000008%40ettus.com. For more options, visit https://groups.google.com/d/optout.
