Groups
Groups
Sign in
Groups
Groups
Jenkins Users
Conversations
About
Send feedback
Help
Jenkins automate tests and send mail with the version of application
19 views
Skip to first unread message
Rafael Silva
unread,
Oct 17, 2016, 3:45:15 PM
10/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
10/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
10/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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