Terms Of Use

Privacy Policy

Featured snippets are MIT license

Gears & Masters

DevOpsnipp.com © 2020

medium.png

list all compile failures

For the job we want to list all compile failures.

0

Votes

def failed_items = [] Jenkins.instance.allItems.findAll { item -> item.disabled != true && item.getLastBuild().result != Result.SUCCESS }.each { item -> failed_items.add(item.name) } failed_items

Vote Here

You must earn at least 1 vote on your snippets to be allowed to vote