ci.gocd.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. environments:
  2. example:
  3. environment_variables:
  4. EXAMPLE_DEPLOYMENT: testing
  5. pipelines:
  6. - yaml-example
  7. pipelines:
  8. yamlpipe1:
  9. group: defaultGroup
  10. materials:
  11. dangjian: # this is the name of material
  12. # says about type of material and url at once
  13. git: http://git.izouma.com/xiongzhu/dangjian.git
  14. stages:
  15. - build: # name of stage
  16. jobs:
  17. build: # name of the job
  18. tasks:
  19. - exec: # indicates type of task
  20. command: make
  21. "yaml-example": # definition of yaml-example pipeline
  22. group: defaultGroup
  23. label_template: "${dangjian[:8]}"
  24. locking: off
  25. materials:
  26. mygit: # this is the name of material
  27. # keyword git says about type of material and url at once
  28. git: http://git.izouma.com/xiongzhu/dangjian.git
  29. branch: ci
  30. upstream:
  31. # type is optional here, material type is implied based on presence of pipeline and stage fields
  32. # type: dependency
  33. pipeline: yamlpipe1
  34. stage: build
  35. stages: # list of stages in order
  36. - build: # name of stage
  37. clean_workspace: true
  38. jobs:
  39. csharp: # name of the job
  40. resources:
  41. - net45
  42. artifacts:
  43. - build:
  44. source: bin/
  45. destination: build
  46. - test:
  47. source: tests/
  48. destination: test-reports/
  49. tabs:
  50. report: test-reports/index.html
  51. tasks: # ordered list of tasks to execute in job csharp
  52. - fetch:
  53. pipeline: yamlpipe1
  54. stage: build
  55. job: build
  56. source: test-bin/
  57. destination: bin/
  58. - exec: # indicates type of task
  59. command: make
  60. arguments:
  61. - "VERBOSE=true"