Skip to content

Commit

Permalink
feat:推荐版本号模版优化 TencentBlueKing#11186
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 23403
  • Loading branch information
useryuyu committed Nov 11, 2024
1 parent fe22716 commit ccdaaa6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
48 changes: 28 additions & 20 deletions src/frontend/devops-pipeline/src/components/ExecPipeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -718,27 +718,35 @@
done
) {
if (!isContinue) {
const postData = {
projectId: this.routerParams.projectId,
pipelineId: this.routerParams.pipelineId,
buildId: this.routerParams.buildNo,
stageId,
containerId,
taskId,
isContinue,
element: atom
}
this.$bkInfo({
title: this.$t('isTaskTermination'),
confirmFn: async () => {
const postData = {
projectId: this.routerParams.projectId,
pipelineId: this.routerParams.pipelineId,
buildId: this.routerParams.buildNo,
stageId,
containerId,
taskId,
isContinue,
element: atom
}
try {
await this.pausePlugin(postData)
await this.requestPipelineExecDetail(this.routerParams)
} catch (err) {
this.$showTips({
message: err.message || err,
theme: 'error'
})
done()
}
try {
await this.pausePlugin(postData)
await this.requestPipelineExecDetail(this.routerParams)
} catch (err) {
this.$showTips({
message: err.message || err,
theme: 'error'
})
done()
}
},
cancelFn: () => {
done()
}
})
} else {
this.toggleAsidePropertyPanel({
isShow: true,
Expand Down
6 changes: 4 additions & 2 deletions src/frontend/locale/pipeline/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,8 @@
"tips5": "- In pipeline orchestration, use the context ${{ ci.build-no }}",
"tips6": "- In the script files referenced by the pipeline, use the built-in environment variable ${{BK_CI_BUILD_NO}}",
"tips7": "3. Example: If the baseline value is 0 and the strategy is to increment by 1 each time, the build number for the next triggered run will be 1.",
"manualResetRequired": "After modifying the baseline, you can apply it while upgrading the instance, or manually reset the instance build number after the upgrade",
"manualResetRequired": "Changes to the baseline value will not take effect automatically. Please make sure to manually reset it after release.",
"templateManualResetRequired": "After modifying the baseline, you can apply it while upgrading the instance, or manually reset the instance build number after the upgrade",
"resetRequiredTips": "A change in the build number baseline value has been detected. Please manually reset the build number.",
"goReset": "Go Reset",
"baselineValue": "buildNo:",
Expand All @@ -1665,5 +1666,6 @@
"deleteDraft": "Delete Draft",
"sureDeleteDraft": "Are you sure you want to delete this draft?",
"deleteDraftPipeline": "The current pipeline has not been published yet. Deleting the draft is equivalent to deleting the pipeline. Are you sure you want to proceed?",
"noDraft": "No drafts available for deletion"
"noDraft": "No drafts available for deletion",
"isTaskTermination": "Are you sure you want to terminate the task execution?"
}
6 changes: 4 additions & 2 deletions src/frontend/locale/pipeline/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,8 @@
"tips5": "- 流水线编排中,使用上下文 ${{ ci.build-no}} 引用",
"tips6": "- 流水线引用的脚本文件中,使用内置环境变量 ${{BK_CI_BUILD_NO}} 引用",
"tips7": "3. 示例,基线值为 0,策略为每次加 1,则下一次触发运行时构建号为 1",
"manualResetRequired": "修改基线后,可在升级实例同时应用,或升级实例后手动重置实例构建号",
"manualResetRequired": "基线值修改后不会自动生效,请务必在发布后手动重置",
"templateManualResetRequired": "修改基线后,可在升级实例同时应用,或升级实例后手动重置实例构建号",
"resetRequiredTips": "检测到构建号基线值发生了变化,请手动重置构建号",
"goReset": "去重置",
"baselineValue": "基线值:",
Expand All @@ -1663,5 +1664,6 @@
"deleteDraft": "删除草稿",
"sureDeleteDraft": "确认删除该草稿?",
"deleteDraftPipeline": "当前流水线尚未发布,删除草稿等同于删除流水线,确认删除吗?",
"noDraft": "暂无可删除的草稿"
"noDraft": "暂无可删除的草稿",
"isTaskTermination": "确认中止任务执行吗?"
}

0 comments on commit ccdaaa6

Please sign in to comment.