qiwen-file/.workflow/pipeline-20220517.yml
2024-08-26 09:37:25 +08:00

48 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '1.0'
name: pipeline-20220517
displayName: pipeline-20220517
triggers:
trigger: manual
stages:
- name: stage-8109fa22
displayName: 编译
strategy: naturally
trigger: manual
executor: []
steps:
- step: build@maven
name: build_maven
displayName: Maven 构建
jdkVersion: '8'
mavenVersion: 3.3.9
commands:
- mvn -B clean package -Dmaven.test.skip=true
artifacts:
- name: BUILD_ARTIFACT
path:
- ./target
settings: []
- name: stage-285eb1b9
displayName: 发布
strategy: naturally
trigger: manual
executor: []
steps:
- step: deploy@agent
name: deploy_agent
displayName: 主机部署
hostGroupID: qiwen
deployArtifact:
- source: build
name: output
target: ~/gitee_go/deploy
dependArtifact: BUILD_ARTIFACT
script: |-
# 请在此输入部署脚本如启动Java应用如下
# nohup java -jar test.jar > nohup.out &
echo 'Hello Gitee!'
permissions:
- role: admin
members:
- mac520