Jenkins 관련 각종 api 활용
https://www.jenkins.io/doc/book/using/remote-access-api/
Remote Access API
Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software
www.jenkins.io
Rest API for disconnect/reconnect slave from Jenkins
I know we can post the following to offline a slave on Jenkins http://[jenkins_url]:8080/computer/[slave_name]/toggleOffline?offlineMessage=bye but is there one for disconnecting and connecting s...
stackoverflow.com
+ 추가적으로 Jenkins에서 에이전트 offline 여부를 한번에 확인시켜주는 api가 별도로 없는것같아서. (offline시키는건 만들어놓고 왜..) 특정 에이전트 api 를 편한 데이터형식으로 긁어와서 스크립트로 offline 값 체크는 해줘야 했다.
-> 이건 어렵지 않지만 powershell에서 비교시 문자열 "Fasle" / "false" 가 아닌 $False $false 를 사용해야 알아먹는다 . .
-> 이후 스케줄러에 에이전트 offline 여부체크를 매분 걸고 offline 일시 다시 붙혀주도록 스크립트실행 ~.
-> 에이전트별 필수적으로 항상 안붙어있어도 될 경우가 있기떄문에 각각 체크-연결 스크립트를 관리하는게 효율적인게 맞는지 확인은 필요