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

deleteJenkinsItem fails if Job web page is open on Jenkins server #67

Open
mpettigr opened this issue Nov 14, 2015 · 0 comments
Open

deleteJenkinsItem fails if Job web page is open on Jenkins server #67

mpettigr opened this issue Nov 14, 2015 · 0 comments

Comments

@mpettigr
Copy link

While using gradle-jenkins-plugin, I noticed that the deleteJenkinsItem task will throw an error if the job you're trying to delete is being viewed on the Jenkins server by a user. It throws a "500 Internal Error".

Running this same experiment using curl ( send a POST doDelete to the job ) reveals the error message is:

...\builds\1\log: The process cannot access the file because it is being used by another process.

Is there another Jenkins API call that allows one to safely delete a job despite being viewed by another user? This doesn't sound like such a great idea but neither does throwing a generic HTTP 500 error.

At the very least, it would be helpful if the gradle-jenkins-plugin threw a more descriptive error. Documenting the behavior in this ticket will at least warn other users. I'm very new to Jenkins so I don't know if this is just an architectural limitation.

Regardless, your plugin is fantastic. I'm using the cloudbees folder plugin support (serviceOverrides). Works great. Thank you for building it.

best regards,

Mark

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

1 participant