pipeline-20220517.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: '1.0'
  2. name: pipeline-20220517
  3. displayName: pipeline-20220517
  4. triggers:
  5. trigger: manual
  6. stages:
  7. - name: stage-8109fa22
  8. displayName: 编译
  9. strategy: naturally
  10. trigger: manual
  11. executor: []
  12. steps:
  13. - step: build@maven
  14. name: build_maven
  15. displayName: Maven 构建
  16. jdkVersion: '8'
  17. mavenVersion: 3.3.9
  18. commands:
  19. - mvn -B clean package -Dmaven.test.skip=true
  20. artifacts:
  21. - name: BUILD_ARTIFACT
  22. path:
  23. - ./target
  24. settings: []
  25. - name: stage-285eb1b9
  26. displayName: 发布
  27. strategy: naturally
  28. trigger: manual
  29. executor: []
  30. steps:
  31. - step: deploy@agent
  32. name: deploy_agent
  33. displayName: 主机部署
  34. hostGroupID: qiwen
  35. deployArtifact:
  36. - source: build
  37. name: output
  38. target: ~/gitee_go/deploy
  39. dependArtifact: BUILD_ARTIFACT
  40. script: |-
  41. # 请在此输入部署脚本,如启动Java应用如下
  42. # nohup java -jar test.jar > nohup.out &
  43. echo 'Hello Gitee!'
  44. permissions:
  45. - role: admin
  46. members:
  47. - mac520