Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CleanBuildHistory entire jobs in jenkins #123

Open
dsakilesh opened this issue Apr 13, 2020 · 1 comment
Open

CleanBuildHistory entire jobs in jenkins #123

dsakilesh opened this issue Apr 13, 2020 · 1 comment

Comments

@dsakilesh
Copy link

Hi @joshshinn

I want to clean all the folders in the jenkins, including the Home page with the below script

https://github.com/cloudbees/jenkins-scripts/blob/master/CleanBuildHistory.groovy

What is the value we need to define for jobName ?

Thanks in advance!

@bitwiseman
Copy link
Contributor

The full job name:

def jobName = "LatestJob1/AnotherOne/anotherFolder" // jobName can be set to a Job or a Folder. If a folder, it will clean all jobs in that folder
//jobName should be full job name from root if mutliple levels down(for example "Folder1/Folder2/Job")

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

No branches or pull requests

2 participants