Fail/pass Jenkins job by email notification -


we have in-company system creating production builds, , need create jenkins job automate builds.

there way automate launch of production build. can know results of build email notification. furthermore, can subscribe notification using personal domain credentials, i.e. same login/pass use log computer (and password changes every month).

so now, jenkins job considered "pass" build launches, , not when finishes.

i wonder how make jenkins pass/fail job given restrictions.

additionally, want avoid:

  • hardcoding personal credentials anywhere,
  • depending on or else's personal computer being turned on.

ideas?

i'm not aware of jenkins plugin capable of receiving e-mails.

if can manage store notifications' content in file use text-finder plugin in post-build actions of additional monitor job runs on regular basis.

have @ monitoring external jobs, too, whether useful you.

update:

there plugin receives e-mails: poll-mailbox-trigger-plugin. install , following:

  • create new freestyle project named e.g. build status mail monitor

    • build triggers → [✔] [poll mailbox trigger] - poll email inbox

      • configure desired
    • buildadd build stepexecute groovy script

      • ◉ groovy command: add code change build launcher job's status

Comments