How to use Jenkins mail functionality from outside

35 views
Skip to first unread message

Sumit Waghmode

unread,
Jan 19, 2016, 8:48:56 AM1/19/16
to Jenkins Users
Hi ,

I want to use Jenkins mail functionality to send mail from my ANT script.

I used java -jar E:\m\jenkins-cli.jar -s http://localhost:8080/jenkins/ mail in command prompt. (Windows)

 but it is not working , Can anybody tell me how to use mail functionality or how to pass parameter to  java -jar E:\m\jenkins-cli.jar -s http://localhost:8080/jenkins/ mail ? in Windows .


Thanks ,
Sumeet Waghmode.

Baptiste Mathus

unread,
Jan 19, 2016, 9:33:04 AM1/19/16
to jenkins...@googlegroups.com
Hi, 

Never used it, but reading the documentation, it says it's reading stdin. 

So it's more something like 
echo "hey that's the message" |  java -jar E:\m\jenkins-cli.jar -s http://localhost:8080/jenkins/ mail 

My 2 cents

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9227936f-cb4c-4c56-9b71-4573f149f24d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages