add pipeline-20220517-1.yml for Gitee Go created_at:2022-05-17 02:38:24
This commit is contained in:
parent
ef9f7d37b7
commit
7d22b97431
52
.workflow/pipeline-20220517-1.yml
Normal file
52
.workflow/pipeline-20220517-1.yml
Normal file
@ -0,0 +1,52 @@
|
||||
version: '1.0'
|
||||
name: pipeline-20220517-1
|
||||
displayName: pipeline-20220517-1
|
||||
triggers:
|
||||
trigger: auto
|
||||
push:
|
||||
branches:
|
||||
prefix:
|
||||
- ''
|
||||
stages:
|
||||
- name: stage-c0fe9b78
|
||||
displayName: 未命名
|
||||
strategy: naturally
|
||||
trigger: auto
|
||||
executor:
|
||||
- mac520
|
||||
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-4d60b905
|
||||
displayName: 未命名
|
||||
strategy: naturally
|
||||
trigger: manual
|
||||
executor:
|
||||
- mac520
|
||||
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: []
|
Loading…
Reference in New Issue
Block a user