diff --git a/locales/ar/l10n-devopsProjects-pipeline-details.js b/locales/ar/l10n-devopsProjects-pipeline-details.js
index 57adf7eaa54..b29937e3ed7 100644
--- a/locales/ar/l10n-devopsProjects-pipeline-details.js
+++ b/locales/ar/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'No build parameters are found.',
};
\ No newline at end of file
diff --git a/locales/de/l10n-devopsProjects-pipeline-details.js b/locales/de/l10n-devopsProjects-pipeline-details.js
index 43d3ce0debd..9ac903e3336 100644
--- a/locales/de/l10n-devopsProjects-pipeline-details.js
+++ b/locales/de/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/en/l10n-devopsProjects-pipeline-details.js b/locales/en/l10n-devopsProjects-pipeline-details.js
index 0fef75917e2..0ac0e88be7e 100644
--- a/locales/en/l10n-devopsProjects-pipeline-details.js
+++ b/locales/en/l10n-devopsProjects-pipeline-details.js
@@ -238,5 +238,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
}
diff --git a/locales/es/l10n-devopsProjects-pipeline-details.js b/locales/es/l10n-devopsProjects-pipeline-details.js
index bbd54843eda..ddca12f9939 100644
--- a/locales/es/l10n-devopsProjects-pipeline-details.js
+++ b/locales/es/l10n-devopsProjects-pipeline-details.js
@@ -227,5 +227,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/fr/l10n-devopsProjects-pipeline-details.js b/locales/fr/l10n-devopsProjects-pipeline-details.js
index 8aac8899a3f..a8dc250b254 100644
--- a/locales/fr/l10n-devopsProjects-pipeline-details.js
+++ b/locales/fr/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/hi/l10n-devopsProjects-pipeline-details.js b/locales/hi/l10n-devopsProjects-pipeline-details.js
index 99f8998766c..45ac1a32df2 100644
--- a/locales/hi/l10n-devopsProjects-pipeline-details.js
+++ b/locales/hi/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/ko/l10n-devopsProjects-pipeline-details.js b/locales/ko/l10n-devopsProjects-pipeline-details.js
index e322f4e1a65..68bb55d30ac 100644
--- a/locales/ko/l10n-devopsProjects-pipeline-details.js
+++ b/locales/ko/l10n-devopsProjects-pipeline-details.js
@@ -223,5 +223,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/lt/l10n-devopsProjects-pipeline-details.js b/locales/lt/l10n-devopsProjects-pipeline-details.js
index 8aac8899a3f..a8dc250b254 100644
--- a/locales/lt/l10n-devopsProjects-pipeline-details.js
+++ b/locales/lt/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/pl/l10n-devopsProjects-pipeline-details.js b/locales/pl/l10n-devopsProjects-pipeline-details.js
index 8aac8899a3f..a8dc250b254 100644
--- a/locales/pl/l10n-devopsProjects-pipeline-details.js
+++ b/locales/pl/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/pt/l10n-devopsProjects-pipeline-details.js b/locales/pt/l10n-devopsProjects-pipeline-details.js
index 8aac8899a3f..a8dc250b254 100644
--- a/locales/pt/l10n-devopsProjects-pipeline-details.js
+++ b/locales/pt/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/tc/l10n-devopsProjects-pipeline-details.js b/locales/tc/l10n-devopsProjects-pipeline-details.js
index 119096b2aaf..77b7a16a380 100644
--- a/locales/tc/l10n-devopsProjects-pipeline-details.js
+++ b/locales/tc/l10n-devopsProjects-pipeline-details.js
@@ -223,5 +223,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: '未發現構建參數。',
};
\ No newline at end of file
diff --git a/locales/tr/l10n-devopsProjects-pipeline-details.js b/locales/tr/l10n-devopsProjects-pipeline-details.js
index f7be2b827c0..93e64ff7cb8 100644
--- a/locales/tr/l10n-devopsProjects-pipeline-details.js
+++ b/locales/tr/l10n-devopsProjects-pipeline-details.js
@@ -228,5 +228,7 @@ Jenkinsfile'nin operasyonel gereksinimlere göre girilen parametreler bölümü.
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: 'Pipeline Logs',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: 'Import From Code Repository'
+ IMPORT_FROM_CODE_REPO: 'Import From Code Repository',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: 'Not found build parameters.',
};
\ No newline at end of file
diff --git a/locales/zh/l10n-devopsProjects-pipeline-details.js b/locales/zh/l10n-devopsProjects-pipeline-details.js
index e0c5132e3ff..f645c60f8e2 100644
--- a/locales/zh/l10n-devopsProjects-pipeline-details.js
+++ b/locales/zh/l10n-devopsProjects-pipeline-details.js
@@ -222,5 +222,7 @@ module.exports = {
// detail page // run log // task status // pipeline log modal
PIPELINE_LOG: '流水线日志',
// detail page // Create Pipeline modal // add step modal
- IMPORT_FROM_CODE_REPO: '从代码库导入'
+ IMPORT_FROM_CODE_REPO: '从代码库导入',
+ // detail page // parameters tab
+ NO_BUILD_PARAMETERS: '未发现构建参数。',
};
\ No newline at end of file
diff --git a/src/pages/devops/containers/Pipelines/Detail/Layout/runs.jsx b/src/pages/devops/containers/Pipelines/Detail/Layout/runs.jsx
index e11c4a647c2..cc4cd0f9436 100644
--- a/src/pages/devops/containers/Pipelines/Detail/Layout/runs.jsx
+++ b/src/pages/devops/containers/Pipelines/Detail/Layout/runs.jsx
@@ -248,6 +248,15 @@ export default class RunDetailLayout extends React.Component {
]
}
+ get routes() {
+ const routes = this.props.route.routes
+ const parameters = get(this.store.runDetail, 'spec.parameters', [])
+ if (!parameters.length) {
+ return routes.filter(item => item.name !== 'build-parameters')
+ }
+ return routes
+ }
+
render() {
const {
runDetail: { id, annotations, labels },
@@ -288,12 +297,6 @@ export default class RunDetailLayout extends React.Component {
],
}
- return (
-