Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
crj1998
meetslut
提交
b4805699
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
b4805699
编写于
11月 05, 2022
作者:
M
Maze
提交者:
Gitee
11月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update branch-pipeline.yml
上级
762a939b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
26 deletion
+22
-26
.workflow/branch-pipeline.yml
.workflow/branch-pipeline.yml
+22
-26
未找到文件。
.workflow/branch-pipeline.yml
浏览文件 @
b4805699
version
:
'
1.0'
name
:
branch-pipeline
displayName
:
BranchPipeline
triggers
:
trigger
:
auto
push
:
branches
:
include
:
-
.*
exclude
:
-
master
stages
:
-
stage
:
name
:
compile
-
name
:
compile
displayName
:
编译
strategy
:
naturally
trigger
:
auto
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
-
pip3 install .
-
python3 ./test.py
artifacts
:
-
name
:
BUILD_ARTIFACT
path
:
-
./
-
step
:
publish@general_artifacts
name
:
publish_general_artifacts
displayName
:
上传制品
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
dependArtifact
:
BUILD_ARTIFACT
# 上传到制品库时的制品命名,默认output
artifactName
:
output
dependsOn
:
build_python
-
stage
:
name
:
release
-
name
:
release
displayName
:
发布
strategy
:
naturally
trigger
:
auto
steps
:
-
step
:
publish@release_artifacts
name
:
publish_release_artifacts
displayName
:
'
发布'
# 上游上传制品任务的产出
displayName
:
发布
dependArtifact
:
output
# 发布制品版本号
version
:
'
1.0.0.0'
# 是否开启版本号自增,默认开启
version
:
1.0.0.0
autoIncrement
:
true
triggers
:
push
:
branches
:
exclude
:
-
master
include
:
-
.*
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录