Guest User

Untitled

a guest
Jan 14th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. node {
  2. withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'creds-id', usernameVariable: 'username', passwordVariable: 'password']]){
  3.  
  4. def remote = [:]
  5. remote.name = 'EU Server 1'
  6. remote.host = 'server1@server.com'
  7. remote.user = '$username'
  8. remote.password = '$password'
  9. remote.allowAnyHosts = true
  10.  
  11. stage('Copy dir to server'){
  12. sshPut remote: remote, from: '/data/workspace', into: '/home/server1/workspace1'
  13. }
  14. }
  15.  
  16. com.jcraft.jsch.JSchException: Auth fail
  17. at com.jcraft.jsch.Session.connect(Session.java:519)
  18. at com.jcraft.jsch.Session.connect(Session.java:183)
  19. at com.jcraft.jsch.Session$connect$6.call(Unknown Source)
Add Comment
Please, Sign In to add comment