Jenkins automate tests and send mail with the version of application

15 views
Skip to first unread message

Rafael Silva

unread,
Oct 17, 2016, 3:45:15 PM10/17/16
to Jenkins Users

Hi !

I use Jenkins to automate my tests and send me an email with the report and it's fine.

But my website has a number of new version by week, and I want send this information with the email


My site has the version on the footer

e.g.

<div id="ft">Test Version: 0.1 - Automation </div>


How I take this number?
It is is very important for my control.


Thank u

Sam K

unread,
Oct 17, 2016, 4:15:17 PM10/17/16
to Jenkins Users
Can you use curl to get the version info, store it into a variable and pass it to the jenkins job?

Rafael Silva

unread,
Oct 18, 2016, 8:20:26 AM10/18/16
to Jenkins Users
I used curl as you suggested :

VERSION=$(curl --request POST 'http://10.200.0.1:8080/page/test.jsf')

echo $VERSION | sed -rn 's/.*\Test Version: //;s/\ - Automation.*//p'


and result my version ! thanks :-)
Reply all
Reply to author
Forward
0 new messages