adoptium / jenkins-helper

Jenkins Node helper API and helper jobs
Apache License 2.0
8 stars 26 forks source link
adoptium groovy jenkins jenkins-helper

jenkins-helper

Files

API Functions (NodeHelper.groovy)

The NodeHelper API contains helper functions to query basic machine stats in real time, add new machines, update/overwrite labels.

Space Monitoring (WorkspaceInfo.groovy)

Iterates over online nodes on Jenkins and prints the contents of the workspace directory along with the space they occupy

Create New Node (CreateNewNode.groovy)

Used to create new nodes with any basic labels

Update Machine Identifiers (UpdateMachineIdentifiers.groovy)

Used to update machine labels and description

How-to

Setup

Here are the instructions on how to add the library to Jenkins

Usuage

To use the API in a Jenkins job you'll need to add @Library('NodeHelper') _ to import the API.

TODOs