Skip to content

Commit

Permalink
feat:流水线变量语法支持两种风格 TencentBlueKing#10576
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 16998
  • Loading branch information
useryuyu committed Aug 30, 2024
1 parent a110063 commit 84544c9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 52 deletions.
10 changes: 0 additions & 10 deletions src/frontend/devops-manage/src/components/dialectPopoverTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ const namingConventionData = [
constrainedMode: t('仅支持上下文方式引用'),
constrainedExample: t('如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}'),
},
{
difference: t('环境变量'),
classic: t('流水线变量、插件输出变量会自动设置为环境变量'),
constrainedMode: t('需要时通过在 Job/Step 上按需指定,降低环境污染风险'),
},
{
difference: t('重置内置只读变量'),
classic: t('不生效,仅警告未报错'),
constrainedMode: t('将报错,运行失败'),
},
{
difference: t('变量值超长'),
classic: t('仅警告未报错'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@
constrainedMode: this.$t('constraintQuoteMode'),
constrainedExample: this.$t('constraintQuoteModeExample')
},
{
difference: this.$t('environmentVariable'),
classic: this.$t('traditionalEnvironmentVariableMode'),
constrainedMode: this.$t('constraintEnvironmentVariableMode')
},
{
difference: this.$t('readOnlyVariable'),
classic: this.$t('traditionalReadOnlyMode'),
constrainedMode: this.$t('constraintReadOnlyMode')
},
{
difference: this.$t('variableValueTooLong'),
classic: this.$t('traditionalValueTooLongMode'),
Expand Down
8 changes: 0 additions & 8 deletions src/frontend/locale/manage/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,6 @@
"仅支持上下文方式引用": "Only Contextual Reference Supported",
"如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}": "e.g., {'${{ci.pipeline_id}}'}、{'${{variables.a}}'}、{'${{steps.get_code.outputs.a}}'}",

"环境变量": "Environment Variable",
"流水线变量、插件输出变量会自动设置为环境变量": "Pipeline Variables and Plugin Output Variables are Automatically Set as Environment Variables",
"需要时通过在 Job/Step 上按需指定,降低环境污染风险": "Specify as Needed in Job/Step to Reduce Environment Pollution Risk",

"重置内置只读变量": "Reset Built-in Read-Only Variables",
"不生效,仅警告未报错": "Not Effective, Only Warning without Error",
"将报错,运行失败": "Will Cause Error and Run Failure",

"变量值超长": "Variable Value Too Long",
"仅警告未报错": "Only Warning without Error",

Expand Down
8 changes: 0 additions & 8 deletions src/frontend/locale/manage/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,6 @@
"仅支持上下文方式引用": "仅支持上下文方式引用",
"如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}": "如:{'${{ci.pipeline_id}}'}、{'${{variables.a}}'}、{'${{steps.get_code.outputs.a}}'}",

"环境变量": "环境变量",
"流水线变量、插件输出变量会自动设置为环境变量": "流水线变量、插件输出变量会自动设置为环境变量",
"需要时通过在 Job/Step 上按需指定,降低环境污染风险": "需要时通过在 Job/Step 上按需指定,降低环境污染风险",

"重置内置只读变量": "重置内置只读变量",
"不生效,仅警告未报错": "不生效,仅警告未报错",
"将报错,运行失败": "将报错,运行失败",

"变量值超长": "变量值超长",
"仅警告未报错": "仅警告未报错",

Expand Down
8 changes: 0 additions & 8 deletions src/frontend/locale/pipeline/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1595,14 +1595,6 @@
"constraintQuoteMode": "Only Contextual Reference Supported",
"constraintQuoteModeExample": "e.g., ${{ci.pipeline_id}}, ${{variables.a}}, ${{steps.get_code.outputs.a}}",

"environmentVariable": "Environment Variable",
"traditionalEnvironmentVariableMode": "Pipeline Variables and Plugin Output Variables are Automatically Set as Environment Variables",
"constraintEnvironmentVariableMode": "Specify as Needed in Job/Step to Reduce Environment Pollution Risk",

"readOnlyVariable": "Reset Built-in Read-Only Variables",
"traditionalReadOnlyMode": "Not Effective, Only Warning without Error",
"constraintReadOnlyMode": "Will Cause Error and Run Failure",

"variableValueTooLong": "Variable Value Too Long",
"traditionalValueTooLongMode": "Only Warning without Error",

Expand Down
8 changes: 0 additions & 8 deletions src/frontend/locale/pipeline/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1596,14 +1596,6 @@
"constraintQuoteMode": "仅支持上下文方式引用",
"constraintQuoteModeExample": "如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}",

"environmentVariable": "环境变量",
"traditionalEnvironmentVariableMode": "流水线变量、插件输出变量会自动设置为环境变量",
"constraintEnvironmentVariableMode": "需要时通过在 Job/Step 上按需指定,降低环境污染风险",

"readOnlyVariable": "重置内置只读变量",
"traditionalReadOnlyMode": "不生效,仅警告未报错",
"constraintReadOnlyMode": "将报错,运行失败",

"variableValueTooLong": "变量值超长",
"traditionalValueTooLongMode": "仅警告未报错",

Expand Down

0 comments on commit 84544c9

Please sign in to comment.