Skip to content

Instantly share code, notes, and snippets.

@cmaggiulli
Created August 24, 2021 17:51
Show Gist options
  • Select an option

  • Save cmaggiulli/1c58befcd3825b93920ddd4c46599d9e to your computer and use it in GitHub Desktop.

Select an option

Save cmaggiulli/1c58befcd3825b93920ddd4c46599d9e to your computer and use it in GitHub Desktop.
Disconnect computer associated with Jenkins Cloud node like %pentaho%
Jenkins.instance.nodes.find{ it.name.toLowerCase() ==~ /.*pentaho.*/ }.each{ println it?.computer?.disconnect() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment