카테고리 없음

[ansible] jenkins 플러그인 출력

'김용환' 2019. 6. 17. 19:23

앤서블로 jenkins 플러그인 목록을 웹이 아닌 API 형태로 출력하려면 다음과 같이 호출할 수 있다.


- name : get plugins
environment:
no_proxy: "localhost"
uri:
url: "http://localhost:8080/scriptText"
method: POST
return_content: yes
HEADER_Content-Type: "application/json"
body: "println(Jenkins.instance.pluginManager.plugins)"