\ No newline at end of file
+
diff --git a/lib/pipeline/addon/utils/branchConditionsEnums.js b/lib/pipeline/addon/utils/branchConditionsEnums.js
index 41c7eae9f..c2e68008d 100644
--- a/lib/pipeline/addon/utils/branchConditionsEnums.js
+++ b/lib/pipeline/addon/utils/branchConditionsEnums.js
@@ -1,11 +1,11 @@
-export default [
+export default [
{
value: 'only',
- label: 'Only the branch'
+ label: 'newPipelineStep.stepType.scm.branchConditionsEnums.only'
}, {
value: 'except',
- label: 'Everything but'
+ label: 'newPipelineStep.stepType.scm.branchConditionsEnums.except'
}, {
value: 'all',
- label: 'All branches'
- }]
\ No newline at end of file
+ label: 'newPipelineStep.stepType.scm.branchConditionsEnums.all'
+ }]
diff --git a/lib/pipeline/translations/en-us.yaml b/lib/pipeline/translations/en-us.yaml
index 1c56d1383..226077705 100644
--- a/lib/pipeline/translations/en-us.yaml
+++ b/lib/pipeline/translations/en-us.yaml
@@ -166,6 +166,11 @@ newPipelineStep:
importFromRepo: Import Pipeline From Repository
importPipelineSuccess: Imported From Branch {branch}
importPipelineFail: No Pipeline Found
+ branchConditionsEnums:
+ only: Only the branch
+ except: Everything but
+ all: All branches
+ noWebhook: No permission to set webhook
build:
here: here
label: publish an image
@@ -182,15 +187,22 @@ newPipelineStep:
pushWarning3: to authenticate it.
scope: "Scope: Available to all namespaces in this project"
registryExist: Registry {registry} registered with {username}
+ stepsChoices:
+ task: run a script
+ build: publish an image
task:
label: run a script
runAsService: Run As a Service
runAsServiceTip: Click this to make it a long running process/container.
shellScript: Shell Script
customEntryPoint: Custom Entrypoint
- command: Command
+ command:
+ label: Command
+ placeholder: Arguments of entrypoint
commandLabel: 'sh'
- entryPoint: EntryPoint
+ entryPoint:
+ label: EntryPoint
+ placeholder: If you want use the default entrypoint, just leave me empty
timeout: Timeout
timeoutWarning: If a step does not complete by the specified amount of time (in minutes; at least 3), then the build will be terminated automatically and marked as Fail.
minutes: minutes
@@ -204,6 +216,8 @@ newPipelineStep:
targetEnv:
label: Target another environment
tip: Default target is current environment, if you want target another enviroment, then check this option.
+ language:
+ header: Language Environment
authPage:
github:
@@ -300,3 +314,6 @@ authPage:
pre: Authenticate with GitHub
preVariable: Enable Pipeline
post: Creating
+
+importPage:
+ header: Import pipeline.yaml
diff --git a/lib/pipeline/translations/zh-hans.yaml b/lib/pipeline/translations/zh-hans.yaml
index faa206fb1..6a6839588 100644
--- a/lib/pipeline/translations/zh-hans.yaml
+++ b/lib/pipeline/translations/zh-hans.yaml
@@ -167,6 +167,11 @@ newPipelineStep:
importFromRepo: 从代码库导入Pipeline配置
importPipelineSuccess: 从{branch}分支导入
importPipelineFail: 没有发现Pipeline
+ branchConditionsEnums:
+ only: Only the branch
+ except: Everything but
+ all: All branches
+ noWebhook: No permission to set webhook
build:
here: 这里
label: 上传镜像
@@ -183,15 +188,22 @@ newPipelineStep:
pushWarning3: 去认证
scope: "范围:可用于此项目中的所有命名空间"
registryExist: 使用{username}注册的镜像仓库{registry}
+ stepsChoices:
+ task: run a script
+ build: 发布镜像
task:
label: 运行一个脚本
runAsService: 作为服务运行
runAsServiceTip: 单击此按钮使之成为一个长时间运行的进程/容器
shellScript: Shell脚本
customEntryPoint: 自定义Entrypoint
- command: Command
+ command:
+ label: 命令
+ placeholder: Arguments of entrypoint
commandLabel: 'sh'
- entryPoint: EntryPoint
+ entryPoint:
+ label: EntryPoint
+ placeholder: If you want use the default entrypoint, just leave me empty
timeout: 超时时间
timeoutWarning: 如果某个步骤在指定时间(以分钟为单位,默认3分钟)内未完成,则构建将自动终止并标记为“失败”
minutes: 分钟
@@ -205,6 +217,8 @@ newPipelineStep:
targetEnv:
label: 目标环境非本环境
tip: 默认目标环境为本环境,如果要将目标环境设定为其他环境,请勾选本选项
+ language:
+ header: 语言环境
authPage:
github:
@@ -301,3 +315,5 @@ authPage:
pre: GitHub验证
preVariable: 启用Pipeline
post: 等待GitHub返回
+importPage:
+ header: 导入 pipeline.yaml