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
23 lines
740 B
Plaintext
23 lines
740 B
Plaintext
<hudson.tasks.Shell>
|
|
<command>rm -rf build dist.zip
|
|
mkdir build
|
|
</command>
|
|
</hudson.tasks.Shell>
|
|
<hudson.plugins.copyartifact.CopyArtifact>
|
|
<projectName><%= project %>-tarball</projectName>
|
|
<filter>dist/*.tar.gz</filter>
|
|
<target>build</target>
|
|
<selector class="hudson.plugins.copyartifact.ParameterizedBuildSelector">
|
|
<parameterName>BUILD_SELECTOR</parameterName>
|
|
</selector>
|
|
</hudson.plugins.copyartifact.CopyArtifact>
|
|
<hudson.tasks.Shell>
|
|
<command>#!/bin/bash
|
|
|
|
#export DO_UPLOAD="no"
|
|
export PROJECT="<%= project %>"
|
|
export GERRIT_REFNAME=$BRANCH
|
|
/bin/bash -xe ~/openstack-ci/slave_scripts/create-ppa-package.sh
|
|
</command>
|
|
</hudson.tasks.Shell>
|