puppetlabs/packaging — pull request #221 by MosesMendoza (2013-10-09 04:46:57+00:00)
Title: Allow rerun of repo creation job

You can't currently 're-run' the packaging or repo creation jobs that the
uber_build dynamically generates via 'rebuild last' or 'matrix reloaded'. For
the packaging job this is because of the way we upload files as triggers, and
that's fairly difficult to address - on a packaging failure, the best option is
just to run the uber_build again, or a job that targets the specific failed
cell, e.g. rake pl:jenkins:deb. However, the downstream repo job can't be
re-run simply because the script isn't idempotent - once run, the files it
leaves behind cause a failure if run again. This commit just updates the script
to remove the directory the job creates before starting, if it exists. This way
at least the repo-jobs can be retriggered.

Signed-off-by: Moses Mendoza