Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- withCredentials([[$class: 'AmazonWebServicesCredentialsBinding',
- credentialsId: '89h9sfh8shf98shf98he9f8sf',
- accessKeyVariable: 'AWS_ACCESS_KEY_ID',
- secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) {
- sh 'printenv'
- echo myFunc.myMeth('blah','sdjlfkdf')
- }
- class myFunc {
- static Object myMeth (String param1, String param2){
- def env = System.getenv()
- //Print all the environment variables.
- env.each{
- println it
- }
- }
- }
Add Comment
Please, Sign In to add comment