e53a05ac39
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
24 lines
804 B
Plaintext
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 [ "x$GERRIT_BRANCH" = "x" ] ; 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>/dev/null | wc -l` -gt 0 -o \
|
|
`git diff HEAD^1 tools/pip-requires 2>/dev/null | wc -l` -gt 0 ]
|
|
then
|
|
rm .cache.bundle
|
|
fi</command>
|
|
</hudson.tasks.Shell>
|
|
</builders>
|