system-config/modules/jenkins_jobs/templates/builder_copy_bundle.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

24 lines
804 B
Plaintext

<builders>
<hudson.plugins.copyartifact.CopyArtifact>
<projectName>$PROJECT-venv</projectName>
<filter></filter>
<target></target>
<selector class="hudson.plugins.copyartifact.StatusBuildSelector"/>
</hudson.plugins.copyartifact.CopyArtifact>
<hudson.tasks.Shell>
<command># Support jobs, such as nova-docs, which are not yet triggered by gerrit
if [ &quot;x$GERRIT_BRANCH&quot; = &quot;x&quot; ] ; then
GERRIT_BRANCH=master
fi
mv jenkins_venvs/$GERRIT_BRANCH/.cache.bundle .
rm -fr jenkins_venvs
if [ -f tools/test-requires -a \
`git diff HEAD^1 tools/test-requires 2&gt;/dev/null | wc -l` -gt 0 -o \
`git diff HEAD^1 tools/pip-requires 2&gt;/dev/null | wc -l` -gt 0 ]
then
rm .cache.bundle
fi</command>
</hudson.tasks.Shell>
</builders>