stack questions
stack questions

Reputation: 173

Can we send the output of the Python script that is present in Jenkins job as mail after the Build is completed?

I have a Jenkins freestyle job, In the job I have a python script which does some operations and now I would like to send a mail through Jenkins with content as the output of the script. Please suggest me the possible ways to do this or any suggestions on the plugins available.

Upvotes: 0

Views: 914

Answers (1)

Gripsiden
Gripsiden

Reputation: 497

there is an extended email option which would allow you to attach a file and email to you.

https://wiki.jenkins.io/display/JENKINS/Email-ext+plugin

enter image description here

You could output your python script to a specific log file and include with your build.log if need be.

hth

Upvotes: 1

Related Questions