Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
crj1998
meetslut
提交
7ba86349
M
meetslut
项目概览
crj1998
/
meetslut
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
meetslut
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
7ba86349
编写于
11月 05, 2022
作者:
M
Maze
提交者:
Gitee
11月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add default pipeline template yaml
上级
6fb6a1ff
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
139 addition
and
0 deletion
+139
-0
.workflow/branch-pipeline.yml
.workflow/branch-pipeline.yml
+52
-0
.workflow/master-pipeline.yml
.workflow/master-pipeline.yml
+50
-0
.workflow/pr-pipeline.yml
.workflow/pr-pipeline.yml
+37
-0
未找到文件。
.workflow/branch-pipeline.yml
0 → 100644
浏览文件 @
7ba86349
version
:
'
1.0'
name
:
branch-pipeline
displayName
:
BranchPipeline
stages
:
-
stage
:
name
:
compile
displayName
:
编译
steps
:
-
step
:
build@python
name
:
build_python
displayName
:
Python 构建
pythonVersion
:
'
3.9'
# 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
artifacts
:
# 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
-
name
:
BUILD_ARTIFACT
# 构建产物获取路径,是指代码编译完毕之后构建物的所在路径
path
:
-
./
commands
:
-
python3 -m pip install --upgrade pip
-
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
-
pip3 install -r requirements.txt
-
python3 ./main.py
-
step
:
publish@general_artifacts
name
:
publish_general_artifacts
displayName
:
上传制品
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
dependArtifact
:
BUILD_ARTIFACT
# 上传到制品库时的制品命名,默认output
artifactName
:
output
dependsOn
:
build_python
-
stage
:
name
:
release
displayName
:
发布
steps
:
-
step
:
publish@release_artifacts
name
:
publish_release_artifacts
displayName
:
'
发布'
# 上游上传制品任务的产出
dependArtifact
:
output
# 发布制品版本号
version
:
'
1.0.0.0'
# 是否开启版本号自增,默认开启
autoIncrement
:
true
triggers
:
push
:
branches
:
exclude
:
-
master
include
:
-
.*
.workflow/master-pipeline.yml
0 → 100644
浏览文件 @
7ba86349
version
:
'
1.0'
name
:
master-pipeline
displayName
:
MasterPipeline
stages
:
-
stage
:
name
:
compile
displayName
:
编译
steps
:
-
step
:
build@python
name
:
build_python
displayName
:
Python 构建
pythonVersion
:
'
3.9'
# 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
artifacts
:
# 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
-
name
:
BUILD_ARTIFACT
# 构建产物获取路径,是指代码编译完毕之后构建物的所在路径
path
:
-
./
commands
:
-
python3 -m pip install --upgrade pip
-
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
-
pip3 install -r requirements.txt
-
python3 ./main.py
-
step
:
publish@general_artifacts
name
:
publish_general_artifacts
displayName
:
上传制品
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
dependArtifact
:
BUILD_ARTIFACT
# 上传到制品库时的制品命名,默认output
artifactName
:
output
dependsOn
:
build_python
-
stage
:
name
:
release
displayName
:
发布
steps
:
-
step
:
publish@release_artifacts
name
:
publish_release_artifacts
displayName
:
'
发布'
# 上游上传制品任务的产出
dependArtifact
:
output
# 发布制品版本号
version
:
'
1.0.0.0'
# 是否开启版本号自增,默认开启
autoIncrement
:
true
triggers
:
push
:
branches
:
include
:
-
master
\ No newline at end of file
.workflow/pr-pipeline.yml
0 → 100644
浏览文件 @
7ba86349
version
:
'
1.0'
name
:
pr-pipeline
displayName
:
PRPipeline
stages
:
-
stage
:
name
:
compile
displayName
:
编译
steps
:
-
step
:
build@python
name
:
build_python
displayName
:
Python 构建
pythonVersion
:
'
3.9'
# 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
artifacts
:
# 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
-
name
:
BUILD_ARTIFACT
# 构建产物获取路径,是指代码编译完毕之后构建物的所在路径
path
:
-
./
commands
:
-
python3 -m pip install --upgrade pip
-
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
-
pip3 install -r requirements.txt
-
python3 ./main.py
-
step
:
publish@general_artifacts
name
:
publish_general_artifacts
displayName
:
上传制品
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
dependArtifact
:
BUILD_ARTIFACT
# 上传到制品库时的制品命名,默认output
artifactName
:
output
dependsOn
:
build_python
triggers
:
pr
:
branches
:
include
:
-
master
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录