Commit fc09bb2d authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'ui-text-jetbrains-integration' into 'master'

Update UI text for TeamCity integration

See merge request gitlab-org/gitlab!59493
parents 0ec92dea 15bea796
...@@ -51,16 +51,15 @@ class TeamcityService < CiService ...@@ -51,16 +51,15 @@ class TeamcityService < CiService
end end
def title def title
'JetBrains TeamCity CI' 'JetBrains TeamCity'
end end
def description def description
'A continuous integration and build server' s_('ProjectService|Run CI/CD pipelines with JetBrains TeamCity.')
end end
def help def help
'You will want to configure monitoring of all branches so merge '\ s_('To run CI/CD pipelines with JetBrains TeamCity, input the GitLab project details in the TeamCity project Version Control Settings.')
'requests build, that setting is in the vsc root advanced settings.'
end end
def fields def fields
...@@ -68,20 +67,20 @@ class TeamcityService < CiService ...@@ -68,20 +67,20 @@ class TeamcityService < CiService
{ {
type: 'text', type: 'text',
name: 'teamcity_url', name: 'teamcity_url',
title: s_('ProjectService|TeamCity URL'), title: s_('ProjectService|TeamCity server URL'),
placeholder: 'TeamCity root URL like https://teamcity.example.com', placeholder: 'https://teamcity.example.com',
required: true required: true
}, },
{ {
type: 'text', type: 'text',
name: 'build_type', name: 'build_type',
placeholder: 'Build configuration ID', help: s_('ProjectService|The build configuration ID of the TeamCity project.'),
required: true required: true
}, },
{ {
type: 'text', type: 'text',
name: 'username', name: 'username',
placeholder: 'A user with permissions to trigger a manual build' help: s_('ProjectService|Must have permission to trigger a manual build in TeamCity.')
}, },
{ {
type: 'password', type: 'password',
......
---
title: Update UI text for TeamCity integration
merge_request: 59493
author:
type: other
...@@ -24707,6 +24707,9 @@ msgstr "" ...@@ -24707,6 +24707,9 @@ msgstr ""
msgid "ProjectService|Mock service URL" msgid "ProjectService|Mock service URL"
msgstr "" msgstr ""
msgid "ProjectService|Must have permission to trigger a manual build in TeamCity."
msgstr ""
msgid "ProjectService|New issue URL" msgid "ProjectService|New issue URL"
msgstr "" msgstr ""
...@@ -24716,7 +24719,13 @@ msgstr "" ...@@ -24716,7 +24719,13 @@ msgstr ""
msgid "ProjectService|Run CI/CD pipelines with Drone." msgid "ProjectService|Run CI/CD pipelines with Drone."
msgstr "" msgstr ""
msgid "ProjectService|TeamCity URL" msgid "ProjectService|Run CI/CD pipelines with JetBrains TeamCity."
msgstr ""
msgid "ProjectService|TeamCity server URL"
msgstr ""
msgid "ProjectService|The build configuration ID of the TeamCity project."
msgstr "" msgstr ""
msgid "ProjectService|To configure this integration, you should:" msgid "ProjectService|To configure this integration, you should:"
...@@ -32827,6 +32836,9 @@ msgstr "" ...@@ -32827,6 +32836,9 @@ msgstr ""
msgid "To receive alerts from manually configured Prometheus services, add the following URL and Authorization key to your Prometheus webhook config file. Learn more about %{linkStart}configuring Prometheus%{linkEnd} to send alerts to GitLab." msgid "To receive alerts from manually configured Prometheus services, add the following URL and Authorization key to your Prometheus webhook config file. Learn more about %{linkStart}configuring Prometheus%{linkEnd} to send alerts to GitLab."
msgstr "" msgstr ""
msgid "To run CI/CD pipelines with JetBrains TeamCity, input the GitLab project details in the TeamCity project Version Control Settings."
msgstr ""
msgid "To see all the user's personal access tokens you must impersonate them first." msgid "To see all the user's personal access tokens you must impersonate them first."
msgstr "" msgstr ""
......
...@@ -10,16 +10,16 @@ RSpec.describe 'User activates JetBrains TeamCity CI' do ...@@ -10,16 +10,16 @@ RSpec.describe 'User activates JetBrains TeamCity CI' do
end end
it 'activates service', :js do it 'activates service', :js do
visit_project_integration('JetBrains TeamCity CI') visit_project_integration('JetBrains TeamCity')
check('Push') check('Push')
check('Merge Request') check('Merge Request')
fill_in('TeamCity URL', with: 'http://teamcity.example.com') fill_in('TeamCity server URL', with: 'http://teamcity.example.com')
fill_in('Build type', with: 'GitlabTest_Build') fill_in('Build type', with: 'GitlabTest_Build')
fill_in('Username', with: 'user') fill_in('Username', with: 'user')
fill_in('Password', with: 'verySecret') fill_in('Password', with: 'verySecret')
click_test_then_save_integration(expect_test_to_fail: false) click_test_then_save_integration(expect_test_to_fail: false)
expect(page).to have_content('JetBrains TeamCity CI settings saved and active.') expect(page).to have_content('JetBrains TeamCity settings saved and active.')
end end
end end
...@@ -5816,7 +5816,7 @@ RSpec.describe Project, factory_default: :keep do ...@@ -5816,7 +5816,7 @@ RSpec.describe Project, factory_default: :keep do
services = subject.find_or_initialize_services services = subject.find_or_initialize_services
expect(services.size).to eq(2) expect(services.size).to eq(2)
expect(services.map(&:title)).to eq(['JetBrains TeamCity CI', 'Pushover']) expect(services.map(&:title)).to eq(['JetBrains TeamCity', 'Pushover'])
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment