Merge "Fixes to Jenkins Job filler"
This commit is contained in:
commit
013408df49
@ -74,7 +74,7 @@ define jenkins_jobs::add_jobs($site) {
|
||||
|
||||
jenkins_jobs::job { "${name}-venv":
|
||||
site => "${site}",
|
||||
project => "${job}",
|
||||
project => "${name}",
|
||||
job => "venv",
|
||||
triggers => template("jenkins_jobs/trigger_timed_midnight.xml.erb"),
|
||||
builders => template("jenkins_jobs/builder_venv.xml.erb"),
|
||||
|
@ -3,42 +3,34 @@ define jenkins_jobs::job($site, $project, $job, $triggers="", $builders, $publis
|
||||
file { "/var/lib/jenkins/jobs/${project}-${job}":
|
||||
ensure => directory,
|
||||
owner => 'jenkins',
|
||||
group => 'nogroup'
|
||||
}
|
||||
|
||||
file { "/var/lib/jenkins/jobs/${project}-${job}/builds":
|
||||
ensure => directory,
|
||||
owner => 'jenkins',
|
||||
group => 'nogroup',
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"],
|
||||
notify => Service["jenkins"]
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"]
|
||||
}
|
||||
|
||||
file { "/var/lib/jenkins/jobs/${project}-${job}/config-history":
|
||||
ensure => directory,
|
||||
owner => 'jenkins',
|
||||
group => 'nogroup',
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"],
|
||||
notify => Service["jenkins"]
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"]
|
||||
}
|
||||
|
||||
file { "/var/lib/jenkins/jobs/${project}-${job}/config.xml":
|
||||
ensure => present,
|
||||
content => template("jenkins_jobs/body.xml.erb"),
|
||||
owner => 'jenkins',
|
||||
group => 'nogroup',
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"],
|
||||
notify => Service["jenkins"]
|
||||
}
|
||||
|
||||
file { "/var/lib/jenkins/jobs/${project}-${job}/nextBuildNumer":
|
||||
file { "/var/lib/jenkins/jobs/${project}-${job}/nextBuildNumber":
|
||||
ensure => present,
|
||||
content => "1",
|
||||
owner => 'jenkins',
|
||||
group => 'nogroup',
|
||||
replace => false,
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"],
|
||||
notify => Service["jenkins"]
|
||||
require => File["/var/lib/jenkins/jobs/${project}-${job}"]
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,10 +50,10 @@
|
||||
<%= builders %>
|
||||
</builders>
|
||||
<% end %>
|
||||
<% if publishers != "" %>
|
||||
<publishers>
|
||||
<% if publishers != "" %>
|
||||
<%= publishers %>
|
||||
</publishers>
|
||||
<% end %>
|
||||
</publishers>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user