Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Add a way to execute a script upon job deletion #64

Open
wwadge opened this issue May 30, 2014 · 2 comments
Open

Add a way to execute a script upon job deletion #64

wwadge opened this issue May 30, 2014 · 2 comments
Labels

Comments

@wwadge
Copy link

wwadge commented May 30, 2014

This would be super useful to cleanup anything that has been created externally to jenkins eg pull down a VM.

All that would be required is a parameter for a script that gets executed together with a job name as a parameter.

@jamesdh
Copy link
Contributor

jamesdh commented May 31, 2014

I like this idea, but in a simpler form. What if we simply placed the names of all deleted jobs into an environment variable (sort of like how you can currently get WORKSPACE, JOB_NAME, JOB_URL, etc). Then that way you could simply add an Execute Shell build step after the build step that invokes the gradle script and use said environment variable to do whatever need be done.

@wwadge
Copy link
Author

wwadge commented Jun 1, 2014

Nice :-)

Looks like someone already forked and added the script delete support too though it's hard-coded at the moment:
derekhansen@1ff94a7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants