Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. import groovy.io.FileType
  2. import com.cloudbees.groovy.cps.NonCPS
  3.  
  4. @NonCPS
  5. def traverseHelper() {
  6. new File(pwd()).traverse(type: FileType.FILES) {
  7. println it.path
  8. }
  9. }
  10.  
  11. pipeline {
  12. agent any
  13. stages {
  14. stage('Build') {
  15. steps {
  16. parallel(
  17. "Linux": {
  18. node(label: 'lnx') {
  19. script {
  20. //checking out from git here
  21. traverseHelper()
  22. }
  23. }
  24. },
  25. "Windows": {
  26. node(label: 'win') {
  27. script {
  28. //do Windows stuff here
  29. }
  30. }
  31. }
  32. )
  33. }
  34. }
  35. //other stages here
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement