Commit ceb064036710b34c243f7b1d083b93acdd48b0c3
1 parent
52bcd04d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix jenkins integration
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
plugins/serpro_integration/lib/serpro_integration_plugin/jenkins_integration.rb
... | ... | @@ -10,7 +10,10 @@ class SerproIntegrationPlugin::JenkinsIntegration |
10 | 10 | #FIXME make jenkins integration works |
11 | 11 | def create_jenkis_project(profile, repository_path, web_url, git_url) |
12 | 12 | #begin |
13 | + project_name = repository_path.split('/').last | |
14 | + if @client.job.list(project_name).blank? | |
13 | 15 | @client.job.create(profile.jenkins_project_name, xml_jenkins(repository_path, web_url, git_url)) |
16 | + end | |
14 | 17 | #rescue JenkinsApi::Exceptions::ApiException |
15 | 18 | #end |
16 | 19 | end | ... | ... |