Git pull on remote server using jenkins pipeline Git pull on remote server using jenkins pipeline jenkins jenkins

Git pull on remote server using jenkins pipeline


Just use git

git(    url: 'git@git.com:YourGitRepo.git',    credentialsId: '5ef933f28-bdb2-0563-bfc7-b460490262735', // found here http://jenkinsURL:8080/credentials/    branch: 'master'    )

Internally it use ssh.
Hope it helps :)