Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yin-zh
bubble-sort-course-config
提交
58bd1685
B
bubble-sort-course-config
项目概览
yin-zh
/
bubble-sort-course-config
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
bubble-sort-course-config
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
58bd1685
编写于
7月 06, 2021
作者:
yin-zh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cicd test2
上级
be76fb6e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
81 addition
and
81 deletion
+81
-81
02_算法实现/index.yml
02_算法实现/index.yml
+81
-81
未找到文件。
02_算法实现/index.yml
浏览文件 @
58bd1685
# 在所有的任务之前执行
before
:
link
:
'
{{chapter_2_url}}'
transitions
:
action
:
-
type
:
create_issue
title
:
"
第二章:算法实现"
with
:
link.md
store
:
chapter_2_url
:
'
{{result.data.html_url}}'
-
type
:
choice
with
:
ready.md
to
:
step1
# 任务列表
step1
:
link
:
'
{{chapter_2_url}}'
description
:
'
编程作业'
transitions
:
events
:
[
'
note_events'
]
action
:
-
type
:
choice
-
with
:
code.md
to
:
step2
step2
:
link
:
'
{{chapter_2_url}}'
description
:
"
代码提交"
# 这里要开始监测 ch1 分支的代码提交,同时判断 CI 的结果,Chapter1 是提交截图
transitions
:
with
:
'
ch1'
events
:
[
'
push'
]
action
:
-
type
:
create_pipeline
with
:
'
/.gitlab-ci.yml'
store
:
ch2_test_url
:
'
{{result.data.html_url}}'
ch2_test_id
:
'
{{result.data.id}}'
-
type
:
issue_comment.created
with
:
commit_ci_run.md
to
:
step3
step3
:
link
:
'
{{chapter_2_url}}'
description
:
"
代码提交"
# 判断CI结果,成功的话提示下一步,失败的话重新coding
transitions
:
-
with
:
events
:
[
'
pipeline'
]
left
:
'
failed'
operator
:
'
='
right
:
'
{{object_attributes.status}}'
action
:
# CI未通过提示
-
type
:
pipeline_result
with
:
'
{{ch1_test_url}}'
-
type
:
issue_comment.created
with
:
commit_ci_error.md
to
:
step2
-
with
:
'
{{ch1_test_id}}'
events
:
[
'
pipeline'
]
left
:
'
success'
operator
:
'
='
right
:
'
{{object_attributes.status}}'
action
:
# CI 通过提示
-
type
:
pipeline_result
with
:
'
{{ch1_test_url}}'
-
type
:
choice
with
:
commit_ci_done_option.md
to
:
step4
step4
:
link
:
'
{{chapter_2_url}}'
# description: "完成当前章节学习"
transitions
:
events
:
[
'
close_issue'
]
action
:
-
type
:
issue_comment.created
with
:
end.md
to
:
end
#
#
在所有的任务之前执行
#
before:
#
link: '{{chapter_2_url}}'
#
transitions:
#
action:
#
- type: create_issue
#
title: "第二章:算法实现"
#
with: link.md
#
store:
#
chapter_2_url: '{{result.data.html_url}}'
#
- type: choice
#
with: ready.md
#
to: step1
s
#
#
任务列表
#
step1:
#
link: '{{chapter_2_url}}'
#
description: '编程作业'
#
transitions:
#
events: ['note_events']
#
action:
#
- type: choice
#
- with: code.md
#
to: step2
#
#
step2:
#
link: '{{chapter_2_url}}'
#
description: "代码提交"
#
# 这里要开始监测 ch1 分支的代码提交,同时判断 CI 的结果,Chapter1 是提交截图
#
transitions:
#
with: 'ch1'
#
events: [ 'push' ]
#
action:
#
- type: create_pipeline
#
with: '/.gitlab-ci.yml'
#
store:
#
ch2_test_url: '{{result.data.html_url}}'
#
ch2_test_id: '{{result.data.id}}'
#
- type: issue_comment.created
#
with: commit_ci_run.md
#
to: step3
#
#
step3:
#
link: '{{chapter_2_url}}'
#
description: "代码提交"
#
# 判断CI结果,成功的话提示下一步,失败的话重新coding
#
transitions:
#
- with:
#
events: [ 'pipeline' ]
#
left: 'failed'
#
operator: '='
#
right: '{{object_attributes.status}}'
#
action:
#
# CI未通过提示
#
- type: pipeline_result
#
with: '{{ch1_test_url}}'
#
- type: issue_comment.created
#
with: commit_ci_error.md
#
to: step2
#
- with: '{{ch1_test_id}}'
#
events: [ 'pipeline' ]
#
left: 'success'
#
operator: '='
#
right: '{{object_attributes.status}}'
#
action:
#
# CI 通过提示
#
- type: pipeline_result
#
with: '{{ch1_test_url}}'
#
- type: choice
#
with: commit_ci_done_option.md
#
to: step4
#
#
step4:
#
link: '{{chapter_2_url}}'
#
# description: "完成当前章节学习"
#
transitions:
#
events: [ 'close_issue' ]
#
action:
#
- type: issue_comment.created
#
with: end.md
#
to: end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录