diff --git a/modules/profile/manifests/jenkins/master.pp b/modules/profile/manifests/jenkins/master.pp index 5aebd591..b206b8ba 100644 --- a/modules/profile/manifests/jenkins/master.pp +++ b/modules/profile/manifests/jenkins/master.pp @@ -8,6 +8,18 @@ ### Jenkins Plugins + # config for gitscm + jenkins::cli::exec { 'configure_git_user': + # semicolons are needed because the lines are joined with spaces rather than newlines. + command => [ + 'def gitscm_config = Jenkins.getInstance().getDescriptor("hudson.plugins.git.GitSCM");', + 'gitscm_config.setCreateAccountBasedOnEmail(false);', + 'gitscm_config.setGlobalConfigName("jenkins");', + 'gitscm_config.setGlobalConfigEmail("jenkins@build.ros.org");', + 'gitscm_config.save();', + ] + } + # config for audit-trail file { '/var/lib/jenkins/audit-trail.xml': mode => '0640',