MasterPipeline.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Copyright (c) 2019 Of Him Code Technology Studio
  3. # Jpom is licensed under Mulan PSL v2.
  4. # You can use this software according to the terms and conditions of the Mulan PSL v2.
  5. # You may obtain a copy of Mulan PSL v2 at:
  6. # http://license.coscl.org.cn/MulanPSL2
  7. # THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  8. # See the Mulan PSL v2 for more details.
  9. #
  10. version: '1.0'
  11. name: master-pipeline
  12. displayName: MasterPipeline
  13. triggers:
  14. trigger: manual
  15. push:
  16. branches:
  17. precise:
  18. - master
  19. - dev
  20. stages:
  21. - name: compile
  22. displayName: 编译
  23. strategy: naturally
  24. trigger: auto
  25. steps:
  26. - step: build@maven
  27. name: build_maven
  28. displayName: Maven 构建
  29. jdkVersion: 8
  30. mavenVersion: 3.6.3
  31. commands:
  32. - curl -LfsSo /opt/node-v18.19.0-linux-x64.tar.gz https://npmmirror.com/mirrors/node/v18.19.0/node-v18.19.0-linux-x64.tar.gz
  33. - tar -zxf /opt/node-v18.19.0-linux-x64.tar.gz -C /opt/ && export PATH=/opt/node-v18.19.0-linux-x64/bin:$PATH
  34. - npm config set registry https://registry.npmmirror.com/
  35. - cd web-vue && npm install && npm run build
  36. - cd ..
  37. - mvn -B -e clean package -Dmaven.test.skip=true -Dmaven.compile.fork=true -s script/settings.xml
  38. artifacts:
  39. - name: all_zip
  40. path:
  41. - modules/server/target/server-2.11.3-release.zip
  42. - modules/agent/target/agent-2.11.3-release.zip
  43. - name: server_zip
  44. path:
  45. - modules/server/target/server-2.11.3-release.zip
  46. - name: agent_zip
  47. path:
  48. - modules/agent/target/agent-2.11.3-release.zip
  49. settings: []
  50. strategy:
  51. retry: '0'
  52. - name: stage-0aa9dee2
  53. displayName: 打包
  54. strategy: naturally
  55. trigger: auto
  56. executor: []
  57. steps:
  58. - step: publish@general_artifacts
  59. name: publish_general_artifacts
  60. displayName: 合并打包
  61. dependArtifact: all_zip
  62. artifactName: jpom-2.11.3
  63. strategy:
  64. retry: '0'
  65. strategy:
  66. blocking: true
  67. permissions:
  68. - role: admin
  69. members: []