[
https://issues.jenkins-ci.org/browse/JENKINS-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162425#comment-162425
]
Steve Roth commented on JENKINS-994:
------------------------------------
Thanks for the script! I had difficulties with the script above, so I tweaked
it slightly till it worked on my box (Fedora 16). This script seems to work
better:
{noformat}
#!/bin/sh
set -e
if [ $# -lt 2 ]; then
echo 1>&2 "Usage: $0 jobname <fromNum> [<toNum>]"
exit 1
fi
JOBNAME=$1
START=$2
END=$3
BASE_URL="http://somebox/job/${JOBNAME}"
doDelete()
{
if /usr/bin/curl -X POST >/dev/null --silent --fail "${1}/${2}/doDelete"
then
RC=0
echo "$1/$2: deleted"
else
RC=$?
echo "$1/$2: failed: $RC"
fi
return $RC
}
if [ -z "$END" ]; then
doDelete $BASE_URL $START
else
for i in $(seq $START $END); do
echo $BASE_URL/$i/doDelete
doDelete $BASE_URL $i
done
fi
{noformat}
> Gui for bulk delete of builds
> -----------------------------
>
> Key: JENKINS-994
> URL: https://issues.jenkins-ci.org/browse/JENKINS-994
> Project: Jenkins
> Issue Type: New Feature
> Components: gui
> Affects Versions: current
> Environment: Platform: All, OS: All
> Reporter: Carlo de Wolf
>
> Create an option in the gui for bulk delete of builds.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira