Guest User

Untitled

a guest
Feb 11th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. - name: Install a role based plugin if it does not exist
  2. uri:
  3. url: "http://localhost:8080/pluginManager/installNecessaryPlugins"
  4. method: POST
  5. user: admin
  6. password: bd7afbedc842418fb7fc27fdf8b3d2e4
  7. force_basic_auth: yes
  8. body: '<jenkins><install plugin="role-strategy@2.9.0" /></jenkins>'
  9. headers:
  10. Content-Type: "text/xml"
  11. follow_redirects: all
  12. when: "'Role-based Authorization Strategy' not in plugins_output_list.content"
  13. ignore_errors: yes
Add Comment
Please, Sign In to add comment