adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
84 stars 100 forks source link

docker: Automate deletion of docker static Jenkins nodes #3561

Closed Haroon-Khel closed 1 month ago

Haroon-Khel commented 1 month ago

ref https://github.com/adoptium/infrastructure/issues/3506

The python script does most of the work; it deletes the node in Jenkins (if the node is idle). Ansible then looks up the machines names and ports in DockerInventory.json and removes the associated container on the dockerhost machine. The python script uses a jenkins username and api token, so these need to be added to the secrets repo.

sxa commented 1 month ago

Does this mean you got around the problems you were having with calling in from python?

Haroon-Khel commented 1 month ago

Docs update here https://github.com/adoptium/infrastructure/pull/3562

sxa commented 1 month ago

Docs update here #3562

Can the doc change be cherry-picked across to this PR? It would be nicer to have the doc update and the code change in one.

Haroon-Khel commented 1 month ago

Can the doc change be cherry-picked across to this PR? It would be nicer to have the doc update and the code change in one.

Done