48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
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
|