s_('Run CI/CD pipelines with Jenkins when you push to a repository, or when a merge request is created, updated, or merged. %{docs_link}').html_safe%{docs_link:docs_link.html_safe}
end
defself.to_param
'jenkins'
end
deffields
[
{
type:'text',
name:'jenkins_url',
title:s_('ProjectService|Jenkins server URL'),
required:true,
placeholder:'http://jenkins.example.com',
help:s_('The URL of the Jenkins server.')
},
{
type:'text',
name:'project_name',
required:true,
placeholder:'my_project_name',
help:s_('The name of the Jenkins project. Copy the name from the end of the URL to the project.')
},
{
type:'text',
name:'username',
help:s_('The username for the Jenkins server.')
},
{
type:'password',
name:'password',
help:s_('The password for the Jenkins server.'),
non_empty_password_title:s_('ProjectService|Enter new password.'),
non_empty_password_help:s_('ProjectService|Leave blank to use your current password.')