Re: Jenkins global metrics

2018-10-04 Thread gotviseryon
Sorry for the delayed response Rajendra. Will try this and let you know. Got stuck with another issue. On Friday, September 28, 2018 at 12:07:12 PM UTC-4, rajendraprasad reddy wrote: > > Following snippet can collect all jobs into a list, > > Just modify the script and please remove the

Re: Jenkins global metrics

2018-10-01 Thread Pavel Novák
Hi, for that probably the best fits custom pipeline script I have the similar - reading total number of builds and the builds in the given period Feel free to customize it or use as starting point if interested) - in attachment Dne středa 26. září 2018 21:29:23 UTC+2 gotvi...@gmail.com

Re: Jenkins global metrics

2018-09-28 Thread RAJENDRA PRASAD
Following snippet can collect all jobs into a list, Just modify the script and please remove the filtering logic from previous script, And add the following snippet, that's all you will get all the jobs. def jobsList=[]; Jenkins.instance.projects.collect { String currentJob=it.name;

Re: Jenkins global metrics

2018-09-28 Thread RAJENDRA PRASAD
Hi , Happy to help you, If you need all the jobs ( instead of filtered ones based in job name) , small chance needs to done in script, I can can update the script send you tomorrow, today I am fully tired, if it is utter udgent, let me know I can work today itself. Regarding email, I am using ant

Re: Jenkins global metrics

2018-09-28 Thread gthosani1
I have used autojenkins, it’s command line and api is neat to expose job details Sent from my iPhone > On Sep 27, 2018, at 11:59 PM, RAJENDRA PRASAD > wrote: > > Here is the Ggroovy Script: > import javax.mail.* > import javax.mail.internet.* > import jenkins.model.* > import

Re: Jenkins global metrics

2018-09-28 Thread gotviseryon
Rajendra. Thank you so much for the information. It is very descriptive. But, need some more help. Sorry to bother, I'm new to Groovy. You mentioned you are filtering the job name by 'Monitor'. Just wanted to check how it works for this scenario I need details of all jobs, irrespective

Re: Jenkins global metrics

2018-09-27 Thread RAJENDRA PRASAD
I am on the way to office , after reaching to office I can provide you sample groovy script and required configuration I can share with you. With that info you can implement in time. Thanks, rajendra On 28-Sep-2018 8:21 AM, wrote: Hi Rajendra. Thank you so much for this news. Would really

Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Hi Rajendra. Thank you so much for this news. Would really appreciate help on implementing this. Could you please guide me through? On Thursday, September 27, 2018 at 9:44:16 PM UTC-4, rajendraprasad reddy wrote: > > Hi , > I did similar implementation for monitoring my Jenkins instance. But

Re: Jenkins global metrics

2018-09-27 Thread RAJENDRA PRASAD
Hi , I did similar implementation for monitoring my Jenkins instance. But I never used a plugin to do that , instead of plugins I used groovy script to prepare mail body content and sending this mail body to intended recipient list. Using groovy it is possible to get any information of Jenkins

Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Thanks a lot Vishal. Will explore this. On Thursday, September 27, 2018 at 1:12:48 PM UTC-4, Vishal Raina wrote: > > We have been exploring Hygiene it not only helps with Jenkins metrics and > also acts as a central dashboard for all your CI/CD tool set. > Take a look at here

Re: Jenkins global metrics

2018-09-27 Thread Vishal Raina
We have been exploring Hygiene it not only helps with Jenkins metrics and also acts as a central dashboard for all your CI/CD tool set. Take a look at here https://github.com/Hygieia/Hygieia. HTH On Wednesday, September 26, 2018 at 12:29:23 PM UTC-7, gotvi...@gmail.com wrote: > > I'm looking

Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Thanks for the info Tyler. On Thursday, September 27, 2018 at 10:46:20 AM UTC-4, R Tyler Croy wrote: > > (replies inline) > > On Wed, 26 Sep 2018, gotvi...@gmail.com wrote: > > > I'm looking to generate a report, as a job, which will provide the > global > > metrics of my Jenkins instance.

Re: Jenkins global metrics

2018-09-27 Thread R. Tyler Croy
(replies inline) On Wed, 26 Sep 2018, gotviser...@gmail.com wrote: > I'm looking to generate a report, as a job, which will provide the global > metrics of my Jenkins instance. I need details in the report like (1) How > many jobs ran? (2) # of failed and successful jobs and every possible >

Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Any help on this. Little urgent. On Wednesday, September 26, 2018 at 3:29:23 PM UTC-4, gotvi...@gmail.com wrote: > > I'm looking to generate a report, as a job, which will provide the global > metrics of my Jenkins instance. I need details in the report like (1) How > many jobs ran? (2) # of

Jenkins global metrics

2018-09-26 Thread gotviseryon
I'm looking to generate a report, as a job, which will provide the global metrics of my Jenkins instance. I need details in the report like (1) How many jobs ran? (2) # of failed and successful jobs and every possible metrics possible in one report. I need to send this report every week to