Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Install a role based plugin if it does not exist
- uri:
- url: "http://localhost:8080/pluginManager/installNecessaryPlugins"
- method: POST
- user: admin
- password: bd7afbedc842418fb7fc27fdf8b3d2e4
- force_basic_auth: yes
- body: '<jenkins><install plugin="role-strategy@2.9.0" /></jenkins>'
- headers:
- Content-Type: "text/xml"
- follow_redirects: all
- when: "'Role-based Authorization Strategy' not in plugins_output_list.content"
- ignore_errors: yes
Add Comment
Please, Sign In to add comment