
Currently Jenkins App install JJB from master and it cause to Authorization error, because JJB from master does not read config file. This patch binds version of JJB to 1.6.1 (last released) There is related bug in: JJB https://storyboard.openstack.org/#!/story/2000686 Change-Id: Ib68ac864ab4d581cf59b6f909198b9699605f45f
38 lines
1.2 KiB
Puppet
38 lines
1.2 KiB
Puppet
node default {
|
|
|
|
$username = hiera('ldap_root_user', 'jenkins')
|
|
$password = hiera('ldap_root_password', '')
|
|
$project_config_repo = hiera('project_config_repo')
|
|
|
|
if ! defined(Class['project_config']) {
|
|
class { 'project_config':
|
|
url => $project_config_repo,
|
|
base => '',
|
|
}
|
|
}
|
|
service { 'jenkins':
|
|
ensure => running,
|
|
enable => true,
|
|
}
|
|
class { '::jenkins::job_builder':
|
|
url => 'http://localhost:8080',
|
|
username => $username,
|
|
password => $password,
|
|
jenkins_jobs_update_timeout => 1200,
|
|
git_revision => '1.6.1',
|
|
git_url => 'https://git.openstack.org/openstack-infra/jenkins-job-builder',
|
|
config_dir => $::project_config::jenkins_job_builder_config_dir,
|
|
require => $::project_config::config_dir,
|
|
extensions => [
|
|
{'name' => 'job_builder', 'parameters' => [{'name' => 'ignore_cache', 'value' => 'True'}]}
|
|
],
|
|
}
|
|
cron { "update_list_of_jobs":
|
|
user => 'root',
|
|
ensure => present,
|
|
command => "bash /usr/local/bin/update_jobs.sh",
|
|
hour => '*',
|
|
minute => '*/5',
|
|
}
|
|
}
|