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 :-)



Em segunda-feira, 17 de outubro de 2016 18:15:17 UTC-2, Sam K escreveu:
>
> Can you use curl to get the version info, store it into a variable and 
> pass it to the jenkins job?
>
> On Monday, October 17, 2016 at 12:45:15 PM UTC-7, Rafael Silva wrote:
>>
>>
>> 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
>>
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ffc3c507-cf95-4cbe-8cb1-320d2e45b912%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to