Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. modify this
  2. checkout([
  3. $class: 'GitSCM',
  4. userRemoteConfigs: [[url: BLAHBLAHBLAH]],
  5. branches: [[name: "${AUTOMATION_BRANCH}"]],
  6. extensions: [
  7. [$class: 'RelativeTargetDirectory', relativeTargetDir: automation_repo_name],
  8. [$class: 'ScmName', name: automation_repo_name],
  9. [$class: 'CleanBeforeCheckout'],
  10. [$class: 'CloneOption', timeout: 60],
  11. [$class: 'CheckoutOption', timeout: 60]
  12. ]
  13. ])
  14.  
  15. to something like this
  16.  
  17. checkout([
  18. $class: 'GitSCM',
  19. userRemoteConfigs: [[credentialsId: 'buildat_ssh_credentials', url: BLAHBLAHBLAH]],
  20. branches: [[name: "${AUTOMATION_BRANCH}"]],
  21. extensions: [
  22. [$class: 'RelativeTargetDirectory', relativeTargetDir: automation_repo_name],
  23. [$class: 'ScmName', name: automation_repo_name],
  24. [$class: 'CleanBeforeCheckout'],
  25. [$class: 'CloneOption', timeout: 60],
  26. [$class: 'CheckoutOption', timeout: 60]
  27. ]
  28. ])
  29.  
  30. PLEASE DON'T COPY PASTE THIS, IT WON'T WORK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement