List of failed jobs

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

List of failed jobs

Jan.Materne
List of failed jobs

Is there a way to get a list of all failed jobs?
- a view
- a list under an URL
- a command in the script console

Jan

Reply | Threaded
Open this post in threaded view
|

答复: List of failed jobs

龚伟坚-2
List of failed jobs

What do you mean job?

 

gwjian

 


发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2009年7月3 16:07
收件人: [hidden email]
主题: List of failed jobs

 

Is there a way to get a list of all failed jobs?
- a view
- a list under an URL
- a command in the script console

Jan

Reply | Threaded
Open this post in threaded view
|

AW: 答复: List of failed jobs

Jan.Materne
List of failed jobs
A Hudson job with build status "failed" - basically a list with all "red" jobs.
 
Jan


Von: 龚伟坚 [mailto:[hidden email]]
Gesendet: Freitag, 3. Juli 2009 10:13
An: [hidden email]
Betreff: 答复: List of failed jobs

What do you mean job?

 

gwjian

 


发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2009年7月3 16:07
收件人: [hidden email]
主题: List of failed jobs

 

Is there a way to get a list of all failed jobs?
- a view
- a list under an URL
- a command in the script console

Jan

Reply | Threaded
Open this post in threaded view
|

答复: 答复: List of failed jobs

龚伟坚-2
List of failed jobs

I don’t think hudson will provide it.,someone help?

 

gwjian

 


发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2009年7月3 16:15
收件人: [hidden email]
主题: AW: 答复: List of failed jobs

 

A Hudson job with build status "failed" - basically a list with all "red" jobs.

 

Jan

 


Von: 龚伟坚 [mailto:[hidden email]]
Gesendet: Freitag, 3. Juli 2009 10:13
An: [hidden email]
Betreff:
答复: List of failed jobs

What do you mean job?

 

gwjian

 


发件人: [hidden email] [mailto:[hidden email]]
发送时间: 2009年7月3 16:07
收件人: [hidden email]
主题: List of failed jobs

 

Is there a way to get a list of all failed jobs?
- a view
- a list under an URL
- a command in the script console

Jan

Reply | Threaded
Open this post in threaded view
|

AW: List of failed jobs

Jan.Materne
In reply to this post by Jan.Materne
I played a little bit using the API, Groovy and the Script console:

activeJobs = hudson.model.Hudson.instance.items.findAll{job ->
job.isBuildable()}
failedRuns = activeJobs.findAll{job -> job.lastBuild.result ==
hudson.model.Result.FAILURE}
failedRuns.each{run -> println(run.name)}

Works fine, but always displays a "Result: [all list items again]" and I
dont know how to supress that.


Jan


________________________________

        Von: [hidden email]
[mailto:[hidden email]]
        Gesendet: Freitag, 3. Juli 2009 10:07
        An: [hidden email]
        Betreff: List of failed jobs
       
       

        Is there a way to get a list of all failed jobs?
        - a view
        - a list under an URL
        - a command in the script console

        Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: List of failed jobs

Qazwart-2
In reply to this post by Jan.Materne
There's an RSS feed of failed jobs. Look in the bottom right side of
the main page. It's URL is http://<hudsonBuildSys>/rssFailed where
<hudsonBuildSys> is the name of your Huson build system.

If you're using FireFox, Safari, or Opera, you should be able to
"subscribe" to that feed, and see a complete list of these builds. If
you're using Outlook 2009 w/ Exchange Server 2009, you can get them
via Outlook.

On Fri, Jul 3, 2009 at 4:06 AM, <[hidden email]> wrote:
> Is there a way to get a list of all failed jobs?
> - a view
> - a list under an URL
> - a command in the script console
>
> Jan



--
David Weintraub
[hidden email]

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: List of failed jobs

Tom Huybrechts
In reply to this post by Jan.Materne
On Fri, Jul 3, 2009 at 11:04 AM, <[hidden email]> wrote:

> I played a little bit using the API, Groovy and the Script console:
>
> activeJobs = hudson.model.Hudson.instance.items.findAll{job ->
> job.isBuildable()}
> failedRuns = activeJobs.findAll{job -> job.lastBuild.result ==
> hudson.model.Result.FAILURE}
> failedRuns.each{run -> println(run.name)}
>
> Works fine, but always displays a "Result: [all list items again]" and I
> dont know how to supress that.
>
>

The result of the last .each call is again failedRuns, and that is printed
Just add return null or so to suppress it.


> Jan
>
>
> ________________________________
>
>        Von: [hidden email]
> [mailto:[hidden email]]
>        Gesendet: Freitag, 3. Juli 2009 10:07
>        An: [hidden email]
>        Betreff: List of failed jobs
>
>
>
>        Is there a way to get a list of all failed jobs?
>        - a view
>        - a list under an URL
>        - a command in the script console
>
>        Jan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

AW: Re: List of failed jobs

Jan.Materne
In reply to this post by Qazwart-2
> There's an RSS feed of failed jobs. Look in the bottom right side of
> the main page. It's URL is http://<hudsonBuildSys>/rssFailed where
> <hudsonBuildSys> is the name of your Huson build system.
>
> If you're using FireFox, Safari, or Opera, you should be able to
> "subscribe" to that feed, and see a complete list of these builds. If
> you're using Outlook 2009 w/ Exchange Server 2009, you can get them
> via Outlook.


Thanks, but on that RSS I dont see which projects are actually failing.
I have all the failed runs from the past.




> > activeJobs = hudson.model.Hudson.instance.items.findAll{job ->
> > job.isBuildable()}
> > failedRuns = activeJobs.findAll{job -> job.lastBuild.result ==
> > hudson.model.Result.FAILURE}
> > failedRuns.each{run -> println(run.name)}
> >
> > Works fine, but always displays a "Result: [all list items again]"
and I
> > dont know how to supress that.
> >
> >
>
> The result of the last .each call is again failedRuns, and that is
printed
> Just add return null or so to suppress it.


Thanks, a >>return ""<< works fine. (Ok, it left the 'Result:' but
that's ok.)


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]