system-config/modules/jenkins_jobs/templates/body.xml.erb
Andrew Hutchings e53a05ac39 Add Jenkins job filler to puppet
Adds default Openstack jobs for a given project name into Jenkins

To envoke add a section as follows to your site manifest:

  class { "jenkins_jobs":
    site => "openstack",
    projects => ["project1", "project2"]
  }

Now using xml building blocks!

Change-Id: If4cacba91d3dc22207e53413543e5bcfcfb0b541
2012-03-20 15:40:01 +00:00

60 lines
1.9 KiB
Plaintext

<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<%= logrotate %>
<keepDependencies>false</keepDependencies>
<properties>
<com.coravy.hudson.plugins.github.GithubProjectProperty>
<projectUrl>https://github.com/<%= site %>/<%= project %>/</projectUrl>
</com.coravy.hudson.plugins.github.GithubProjectProperty>
<hudson.plugins.throttleconcurrents.ThrottleJobProperty>
<maxConcurrentPerNode>0</maxConcurrentPerNode>
<maxConcurrentTotal>0</maxConcurrentTotal>
<categories/>
<throttleEnabled>false</throttleEnabled>
<throttleOption>project</throttleOption>
<configVersion>1</configVersion>
</hudson.plugins.throttleconcurrents.ThrottleJobProperty>
<EnvInjectJobProperty>
<info>
<propertiesContent>PROJECT=<%= project %></propertiesContent>
<loadFilesFromMaster>false</loadFilesFromMaster>
</info>
<on>true</on>
<keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
<keepBuildVariables>true</keepBuildVariables>
<contributors/>
</EnvInjectJobProperty>
<hudson.security.AuthorizationMatrixProperty>
<permission>hudson.model.Item.Build:authenticated</permission>
</hudson.security.AuthorizationMatrixProperty>
</properties>
<% if scm == "" %>
<scm class="hudson.scm.NullSCM"/>
<% else %>
<%= scm %>
<% end %>
<canRoam>false</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<% if triggers != "" %>
<triggers class="vector">
<%= triggers %>
</triggers>
<% end %>
<concurrentBuild>false</concurrentBuild>
<% if builders != "" %>
<builders>
<%= builders %>
</builders>
<% end %>
<% if publishers != "" %>
<publishers>
<%= publishers %>
</publishers>
<% end %>
<buildWrappers/>
</project>