Hi,
We are using Jenkins 2.332.1 running on Linux server.
Is there a groovy script to list currently disabled projects on Jenkins ?
Thanks!
Thanks,
Ram.
Hi,
We are using Jenkins 2.332.1 running on Linux server.
Is there a groovy script to list currently disabled projects on Jenkins ?
Thanks!
Thanks,
Ram.
Simplest way (you may want to get more exact though)
List disabledItems = Jenkins.instance.allItems().findAll { item ->
item.hasProperty('disabled') && item.disabled }
Hi Michael,
Thanks, Its working fine.
Thanks,
Ram.