Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 流水线支持设置并发组执行策略 #6521

Closed
royalhuang opened this issue Apr 12, 2022 · 0 comments
Closed

feat: 流水线支持设置并发组执行策略 #6521

royalhuang opened this issue Apr 12, 2022 · 0 comments
Assignees
Labels
area/ci/backend CI 后端issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy grayed uat环境测试通过/test passed for uat stage kind/feat/product 产品特性 streams/done stream 生产部署成功 streams/for gray stream 灰度环境部署成功 streams/for test stream 测试环境部署成功 tested 测试环境通过/test patest passed for test stage

Comments

@royalhuang
Copy link
Collaborator

【需求场景】

当用户的构建资源、或者远端服务限制不允许并发使用时,同一时间只能执行一个构建任务

相同分支或者相同的mr,新的任务已涵盖旧的变更,旧的变更触发的执行已意义不大,希望自动取消旧的变更触发的执行,始终以最新的触发为准。

【实现方案】

  1. 若有相同 group 的流水线正在执行,则新来的触发排队等待,任何之前排队的触发将被取消
  2. cancel-in-progress: true时, 若有相同 group 的流水线正在执行,则取消正在执行的流水线,新来的触发开始执行
@royalhuang royalhuang added kind/feat/product 产品特性 area/ci/backend CI 后端issue labels Apr 12, 2022
@royalhuang royalhuang added for test Test environment in tencent has been deploy streams/for test stream 测试环境部署成功 labels Apr 15, 2022
@royalhuang royalhuang added tested 测试环境通过/test patest passed for test stage streams/test/passed labels Apr 15, 2022
irwinsun added a commit that referenced this issue Apr 18, 2022
feat: 流水线支持设置并发组执行策略 #6521
@bkci-bot bkci-bot added streams/for gray stream 灰度环境部署成功 for gray UAT environment in tencent has been deploy streams/done stream 生产部署成功 labels Apr 18, 2022
@yongyiduan yongyiduan added the grayed uat环境测试通过/test passed for uat stage label May 5, 2022
@bkci-bot bkci-bot added the done Production environment in tencent has been deploy label May 5, 2022
yongyiduan pushed a commit to yongyiduan/bk-ci that referenced this issue May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci/backend CI 后端issue done Production environment in tencent has been deploy for gray UAT environment in tencent has been deploy for test Test environment in tencent has been deploy grayed uat环境测试通过/test passed for uat stage kind/feat/product 产品特性 streams/done stream 生产部署成功 streams/for gray stream 灰度环境部署成功 streams/for test stream 测试环境部署成功 tested 测试环境通过/test patest passed for test stage
Projects
None yet
Development

No branches or pull requests

3 participants