Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def static setSecrets(Job delegate, Map overrides = [:]) {
- def liveUsername
- def livePassword
- def file
- new URL('https://path/file').withInputStream { i ->
- file.withOutputStream {
- it << i
- }
- }
- file.withReader { liveUsername = it.readLines().get(0) }
- file.withReader { livePassword = it.readLines().get(1) }
- def options = [
- IDENTITY_USER: liveUsername,
- IDENTITY_PASSWORD: livePassword]
- setEnv(delegate, options, overrides)
- }
- java.lang.NullPointerException: Cannot invoke method withOutputStream() on null object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement