Search code examples
emailhudsonjenkinssendmail

Trigger Build in Jenkins By EMAIL


I am Currently using Jenkins in Windows 7 . I have recently ran some build in jenkins . I am Able to run the build by SVN Post commit . Now i have to triiger the build in Jenkins by email.

I am a windows user and as per my knowledge Sendmail and qmail agents have to be used to trigger build in jenkins by email.But these are for Unix .

Or is there any way i can install sendmail on my windows machine and then perform the trigger.

I am A windows user and so if any plugin is there to trigger builds in jenkins .Please let me know.

thank you


Solution

  • Use a simple free mail client (say, Mozilla Thunderbird) that would filter trigger e-mails in the appropriate folder. Monitor the file system location of that folder with FSTrigger Plugin.

    You do not need to read the e-mails in the folder. What you do is this: for each build create an e-mail folder, create a filter that sorts e-mails by subject (subjects would be something like "Trigger [job-name]" ). And monitor modifications to those folders via the plugin. My Thunderbird folders, for example, are stored locally in C:/Users/[user_name]/AppData/Roaming/Thunderbird/Profiles/9nby4v95.default/Mail/Local Folders/ But you can configure Thunderbird to put them wherever you want.