Advertisement
Guest User

Untitled

a guest
Dec 30th, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. The .zuul.yaml in RepoX
  8. - project:
  9. gate:
  10. jobs:
  11. - JobX
  12. - JobY:
  13. requires: JobX
  14.  
  15.  
  16. Repo name Zuul which containes all Zuul Jobs:
  17. file .zuul.yaml
  18.  
  19. - job:
  20. name: jobX
  21. run: playbooks/jobX.yaml
  22. nodeset:
  23. nodes:
  24. - name: ubuntu-bionic
  25. label: ubuntu-bionic
  26. provides: jobX
  27.  
  28. - job:
  29. name: jobY
  30. run: playbooks/jobY.yaml
  31. nodeset:
  32. nodes:
  33. - name: ubuntu-bionic
  34. label: ubuntu-bionic
  35. provides: jobY
  36.  
  37. And the playbooks/jobX.yaml
  38.  
  39.  
  40. - hosts: all
  41. tasks:
  42. - name: Get my PWD
  43. shell: pwd
  44. register: pwd_result
  45.  
  46. - name: Return some values to Zuul to affect its behavior and for use by dependent jobs.
  47. zuul_return:
  48. data:
  49. aaa: "foo"
  50. bbb: "bar"
  51. ccc: "zoo"
  52.  
  53.  
  54. And the playbooks/jobY.yaml
  55.  
  56. - hosts: all
  57. tasks:
  58. command: echo "{{ aaa }} {{ bbb }} {{ ccc }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement