NOAA-EMC / global-workflow

Global Superstructure/Workflow supporting the Global Forecast System (GFS)
https://global-workflow.readthedocs.io/en/latest
GNU Lesser General Public License v3.0
74 stars 167 forks source link

Script from cron for persistent Jenkins Java Agent #2633

Closed TerrenceMcGuinness-NOAA closed 4 months ago

TerrenceMcGuinness-NOAA commented 4 months ago

What new functionality do you need?

We need a script that can run from a cron job that check the node connection to the Jenkins agent on a machine and start up the agent if is not.

What are the requirements for the new functionality?

That the cron script can launch an agent if it is not connected

Acceptance Criteria

We test the system by manually killing the agent and see if the cron starts it back up on its own

Suggest a solution (optional)

write in in bash and use curl with Jenkins Remote API to check the connection.