Hi,

 If you want to use a more standard way (IMO) I recommend you the below 
approach, then you won't need to worry about parsing any console output at 
all

 If you generate those environment variables on the fly then you can inject 
properties during the build phase via 
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin (for instance 
via a properties file) then you can run a postbuild action to send an email 
with https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin and use 
those variables as part of the email.

I hope it helps,
Víctor

On Thursday, 3 December 2015 18:07:17 UTC+1, sumanth veera wrote:
>
> Hi All...
>
> Currently we have selenium script running in Jenkins to test in 
> Development, QA, Production under single job. Everytime we change
> Environment manually in configuration.xls file as part of selenium script 
> as seen below
>  
>  
> Selenium script wil take above URL specified in Environment Column which 
> has value “Yes”.
> i.e. jenkins will hit script on prod.123 url
>  
> Problem :
> We want to attach Environment URL in Jenkins Notification Email. To do 
> that we are currently printing Environment on Console log.
>  
> How do we filter this Environment value content from Jenkins Console log 
> and assign  to varaiable to use this variable in Email Template.
>  
> Please suggest us how to resolve this ..
> I got soultions that we can use XPATH or JSON filter.But can you suggest 
> how to write script’s to filter console log with regular expression or
> Any other approach solution..
>
> Thanks
> Sumanth Veera 
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b08b556c-1f46-40f1-ab5d-4b56fe238bbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to