← Back to team overview

canonical-ci-engineering team mailing list archive

Re: Jenkins jobs for older releases

 

On 10/23/2013 02:19 PM, Evan Dandrea wrote:
On 23 October 2013 11:51, Paul Larson <paul.larson@xxxxxxxxxxxxx> wrote:
I was just talking about image testing jobs. Those don't have any impact on
kernel SRU.

Excellent. Let's get rid of them then :)

I just made a simple groovy script we can run to help clean things up based on jobname regexs:

 http://paste.ubuntu.com/6291862/

We can add to the "jobPatterns" array and then run this. It will move the job and old builds to a backup directory, remove the workspace, and then delete the job.

I'm sure this will be a little slower, but it won't cause any Jenkins downtime (and reloading all those jobs is very slow as we know).

You have to have an SSH key configured on the Jenkins server, and then run:

 java -jar /usr/share/jenkins/cli/java/cli.jar \
  -s http://localhost:8080  groovy /home/doanac/remove-jobs.groovy

-andy


Follow ups

References