[ https://issues.jenkins-ci.org/browse/JENKINS-13880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163140#comment-163140 ]
Gregory Boissinot commented on JENKINS-13880: --------------------------------------------- Maybe look at the ArtifactDeployer Jenkins plugin (https://wiki.jenkins-ci.org/display/JENKINS/ArtifactDeployer+Plugin). You are able to deploy generated artifacts from workspace to remote locations and enable you to run a script when the build job is discarded. > Ability to run script when discarding build (or build artifacts) > ---------------------------------------------------------------- > > Key: JENKINS-13880 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13880 > Project: Jenkins > Issue Type: New Feature > Components: core > Affects Versions: current > Reporter: John Myers > > We would like the ability to configure a script to be run when a build is > discarded (or possibly when build artifacts are discarded). > We are using a script build step to push a generated RPM into a yum > repository. We need a way to delete old RPMs in order to save space, yet keep > the RPMs of builds that are kept forever. -- 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