Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 955
mannu singh Avatar asked Jan 31 '12 06:01

mannu singh


People also ask

How do I trigger a build automatically in Jenkins?

Follow the steps as mentioned below to trigger a Jenkins job automatically based on GitHub's webhook configurations: Step 1: Go to the Configuration page of the respective job and under the build trigger section, check the "GitHub hook trigger for GITScm polling" checkbox and click on the Save button.

How do I manually trigger a Jenkins build?

Manual Review From the Jenkins dashboard, click the job name in the table. Click Build Review in the sidebar menu. Complete the form to specify the parameters for build. To trigger the build, click the Build button.


2 Answers

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.

like image 128
malenkiy_scot Avatar answered Sep 28 '22 00:09

malenkiy_scot


I wrote the following Jenkins plugin about 3 months ago, to do just this:

https://wiki.jenkins-ci.org/display/JENKINS/poll-mailbox-trigger-plugin
https://wiki.jenkins-ci.org/display/JENKINS/Poll+Mailbox+Trigger+Plugin.

Check it out, read the documentation, let me know if this solves your problem.

All documentation is on gitHub now:

https://github.com/jenkinsci/poll-mailbox-trigger-plugin

like image 30
Nick Grealy Avatar answered Sep 25 '22 00:09

Nick Grealy