Skip to content

Commit

Permalink
feat:流水线变量语法支持两种风格TencentBlueKing#10576
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 17790
  • Loading branch information
useryuyu committed Sep 9, 2024
1 parent 213ab29 commit 636cb15
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ const namingConventionData = [
constrainedMode: t('仅支持双花括号,避免出现 bash 脚本变量在执行前被系统赋值的问题'),
constrainedExample: t('如:${{variables.var}}'),
},
{
difference: t('引用方式'),
classic: t('直接引用变量名或上下文方式引用'),
constrainedMode: t('仅支持上下文方式引用'),
constrainedExample: t('如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}'),
},
{
difference: t('变量值超长'),
classic: t('仅警告未报错'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
constrainedMode: this.$t('constraintFormat'),
constrainedExample: this.$t('constraintFormatExample')
},
{
difference: this.$t('quoteMode'),
classic: this.$t('traditionalQuoteMode'),
constrainedMode: this.$t('constraintQuoteMode'),
constrainedExample: this.$t('constraintQuoteModeExample')
},
{
difference: this.$t('variableValueTooLong'),
classic: this.$t('traditionalValueTooLongMode'),
Expand Down
5 changes: 0 additions & 5 deletions src/frontend/locale/manage/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@
"仅支持双花括号,避免出现 bash 脚本变量在执行前被系统赋值的问题": "Only Double Curly Braces Supported to Avoid System Assignment Issues in Bash Scripts",
"如:${{variables.var}}": "e.g., {'${{variables.var}}'}",

"引用方式": "Quote Mode",
"直接引用变量名或上下文方式引用": "Direct Variable Name or Contextual Reference",
"仅支持上下文方式引用": "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}}'}",

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

Expand Down
5 changes: 0 additions & 5 deletions src/frontend/locale/manage/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@
"仅支持双花括号,避免出现 bash 脚本变量在执行前被系统赋值的问题": "仅支持双花括号,避免出现 bash 脚本变量在执行前被系统赋值的问题",
"如:${{variables.var}}":"如:{'${{variables.var}}'}",

"引用方式": "引用方式",
"直接引用变量名或上下文方式引用": "直接引用变量名或上下文方式引用",
"仅支持上下文方式引用": "仅支持上下文方式引用",
"如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}": "如:{'${{ci.pipeline_id}}'}、{'${{variables.a}}'}、{'${{steps.get_code.outputs.a}}'}",

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

Expand Down
5 changes: 0 additions & 5 deletions src/frontend/locale/pipeline/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1592,11 +1592,6 @@
"constraintFormat": "Only Double Curly Braces Supported to Avoid System Assignment Issues in Bash Scripts",
"constraintFormatExample": "e.g., ${{variables.var}}",

"quoteMode": "Quote Mode",
"traditionalQuoteMode": "Direct Variable Name or Contextual Reference",
"constraintQuoteMode": "Only Contextual Reference Supported",
"constraintQuoteModeExample": "e.g., ${{ci.pipeline_id}}, ${{variables.a}}, ${{steps.get_code.outputs.a}}",

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

Expand Down
5 changes: 0 additions & 5 deletions src/frontend/locale/pipeline/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1593,11 +1593,6 @@
"constraintFormat": "仅支持双花括号,避免出现 bash 脚本变量在执行前被系统赋值的问题",
"constraintFormatExample": "如:${{variables.var}}",

"quoteMode": "引用方式",
"traditionalQuoteMode": "直接引用变量名或上下文方式引用",
"constraintQuoteMode": "仅支持上下文方式引用",
"constraintQuoteModeExample": "如:${{ci.pipeline_id}}、${{variables.a}}、${{steps.get_code.outputs.a}}",

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

Expand Down

0 comments on commit 636cb15

Please sign in to comment.