Guest User

Untitled

a guest
Nov 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. withCredentials([[$class: 'AmazonWebServicesCredentialsBinding',
  2. credentialsId: '89h9sfh8shf98shf98he9f8sf',
  3. accessKeyVariable: 'AWS_ACCESS_KEY_ID',
  4. secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) {
  5.  
  6. sh 'printenv'
  7.  
  8. echo myFunc.myMeth('blah','sdjlfkdf')
  9.  
  10. }
  11.  
  12. class myFunc {
  13. static Object myMeth (String param1, String param2){
  14.  
  15.  
  16. def env = System.getenv()
  17. //Print all the environment variables.
  18. env.each{
  19. println it
  20. }
  21. }
  22. }
Add Comment
Please, Sign In to add comment