Guest User

Untitled

a guest
Apr 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import hudson.model.User;
  2. import jenkins.security.ApiTokenProperty;
  3. import hudson.util.Secret;
  4.  
  5. // Get the actual token
  6. u = User.get("admin")
  7. tokprop = u.getProperty(ApiTokenProperty.class)
  8. actual_token = tokprop.getApiTokenInsecure()
Add Comment
Please, Sign In to add comment